/* BTK Daily Rates Frontend Styles */

.btk-dr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btk-dr-header {
    margin-bottom: 25px;
}

.btk-dr-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.btk-dr-date {
    color: #c41e3a;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.btk-dr-whatsapp {
    color: #4a9c2d;
    font-weight: 600;
    margin-bottom: 20px;
}

.btk-dr-whatsapp a {
    color: #4a9c2d;
    text-decoration: none;
}

.btk-dr-whatsapp a:hover {
    text-decoration: underline;
}

/* Filter Bar */
.btk-dr-filter-form {
    margin-bottom: 10px;
}

.btk-dr-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.btk-dr-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.btk-dr-search-box input {
    width: 100%;
    padding: 10px 15px;
    padding-left: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.btk-dr-search-box input:focus {
    outline: none;
    border-color: #b8860b;
}

.btk-dr-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.btk-dr-filter-dropdown {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
}

.btk-dr-filter-dropdown:focus {
    outline: none;
    border-color: #b8860b;
}

.btk-dr-btn-filter {
    padding: 10px 24px;
    background: linear-gradient(135deg, #b8860b 0%, #8b6508 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btk-dr-btn-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.btk-dr-btn-reset {
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btk-dr-btn-reset:hover {
    background: #e0e0e0;
}

/* Results Info */
.btk-dr-results-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.btk-dr-filter-active {
    color: #b8860b;
    font-weight: 600;
}

/* Table */
.btk-dr-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}

.btk-dr-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.btk-dr-table thead {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f0 100%);
}

.btk-dr-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #b8d4e3;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.btk-dr-table th:hover {
    background: rgba(0,0,0,0.03);
}

.btk-dr-table th .sort-icon {
    margin-left: 5px;
    opacity: 0.5;
    font-size: 12px;
}

.btk-dr-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.btk-dr-table tbody tr {
    transition: background 0.2s;
}

.btk-dr-table tbody tr:hover {
    background: #f8f9fa;
}

.btk-dr-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.btk-dr-table tbody tr:nth-child(even):hover {
    background: #f0f1f2;
}

/* No results */
.btk-dr-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Loading */
.btk-dr-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Pagination */
.btk-dr-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.btk-dr-pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btk-dr-pagination a,
.btk-dr-pagination span {
    display: block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: all 0.3s;
}

.btk-dr-pagination a:hover {
    background: #b8860b;
    color: #fff;
    border-color: #b8860b;
}

.btk-dr-pagination .current {
    background: #b8860b;
    color: #fff;
    border-color: #b8860b;
}

.btk-dr-pagination .dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .btk-dr-container {
        padding: 15px;
    }

    .btk-dr-title {
        font-size: 1.4rem;
    }

    .btk-dr-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .btk-dr-search-box {
        max-width: 100%;
    }

    .btk-dr-filter-dropdown {
        width: 100%;
    }

    .btk-dr-btn-filter,
    .btk-dr-btn-reset {
        width: 100%;
        text-align: center;
    }

    .btk-dr-table-wrapper {
        border-radius: 8px;
    }

    .btk-dr-table {
        font-size: 13px;
    }

    .btk-dr-table th,
    .btk-dr-table td {
        padding: 10px 12px;
    }

    /* Card view for mobile */
    .btk-dr-table thead {
        display: none;
    }

    .btk-dr-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
        background: #fff;
    }

    .btk-dr-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .btk-dr-table tbody td:last-child {
        border-bottom: none;
    }

    .btk-dr-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        margin-right: 15px;
    }

    .btk-dr-pagination {
        gap: 3px;
    }

    .btk-dr-pagination a,
    .btk-dr-pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }
}
