/*.page-title {*/
/*    font-family: 'Moneta-bold', serif;*/
/*    font-size: 2.5rem;*/
/*    letter-spacing: 4px;*/
/*    text-transform: uppercase;*/
/*    color: var(--off-white);*/
/*    margin-bottom: 2rem;*/
/*    text-align: center;*/
/*    padding: 2rem;*/
/*}*/

/* Table Container */
.table-container {
    background: var(--charcoal-light);
    border: 1px solid rgba(194, 174, 146, 0.2);
    border-radius: 0;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-dark) 20%,
    var(--gold) 50%,
    var(--gold-light) 80%,
    transparent 100%);
}

/* Table Header with Actions */
.table-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(194, 174, 146, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(194, 174, 146, 0.05) 0%, transparent 100%);
}

.table-header-title {
    font-family: 'Moneta-regular', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.table-actions {
    display: flex;
    gap: 1rem;
}

.table-action-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.table-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.table-action-btn:hover::before {
    left: 0;
}

.table-action-btn:hover {
    color: var(--charcoal);
}

/* Search and Filter Bar */
.table-controls {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(194, 174, 146, 0.1);
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: var(--charcoal-lighter);
    border: 1px solid rgba(194, 174, 146, 0.2);
    color: var(--off-white);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(194, 174, 146, 0.05);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
}

.filter-select {
    padding: 0.8rem 2rem 0.8rem 1rem;
    background: var(--charcoal-lighter);
    border: 1px solid rgba(194, 174, 146, 0.2);
    color: var(--off-white);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

.data-table thead {
    background: linear-gradient(135deg, rgba(194, 174, 146, 0.1) 0%, rgba(194, 174, 146, 0.05) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    padding: 1.5rem 2rem;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    border-bottom: 2px solid rgba(194, 174, 146, 0.3);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-table th:hover {
    background: rgba(194, 174, 146, 0.08);
}

.data-table th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 1rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.data-table th.sortable:hover::after {
    opacity: 1;
}

.data-table th.sorted-asc::after {
    content: '↑';
    opacity: 1;
    color: var(--gold-light);
}

.data-table th.sorted-desc::after {
    content: '↓';
    opacity: 1;
    color: var(--gold-light);
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(194, 174, 146, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

/*.data-table tbody tr::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    width: 3px;*/
/*    background: var(--gold);*/
/*    transform: scaleY(0);*/
/*    transition: transform 0.3s ease;*/
/*}*/

.data-table tbody tr:hover {
    background: rgba(194, 174, 146, 0.05);
}

.data-table tbody tr:hover::before {
    transform: scaleY(1);
}

.data-table td {
    padding: 1.5rem 2rem;
    font-size: 0.9rem;
    color: var(--grey);
    letter-spacing: 0.5px;
}

.data-table td:first-child {
    color: var(--off-white);
    font-weight: 500;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 0;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid;
}

.status-active {
    background: rgba(194, 174, 146, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

.status-pending {
    background: rgba(221, 211, 196, 0.1);
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.status-inactive {
    background: rgba(222, 227, 228, 0.05);
    border-color: var(--grey);
    color: var(--grey);
}

/* Action Buttons in Table */
.table-action-icons {
    display: flex;
    gap: 1rem;
}

.action-icon {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 0.3rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.action-icon:hover {
    color: var(--gold-light);
    transform: scale(1.2);
}

/* Pagination */
.table-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(194, 174, 146, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(194, 174, 146, 0.03) 0%, transparent 100%);
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--grey);
    letter-spacing: 0.5px;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: var(--charcoal-lighter);
    border: 1px solid rgba(194, 174, 146, 0.2);
    color: var(--grey);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.page-btn:hover {
    background: rgba(194, 174, 146, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.page-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--charcoal);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Checkbox Styling */
.checkbox-cell {
    width: 60px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gold);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background: var(--gold);
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--charcoal);
    font-size: 0.8rem;
    font-weight: bold;
}

/* Loading State */
.table-loading {
    padding: 4rem;
    text-align: center;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 2px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(194, 174, 146, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.table-empty {
    padding: 4rem;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-text {
    color: var(--grey);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .data-table {
        display: block;
        overflow-x: auto;
    }

    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .table-actions {
        width: 100%;
    }

    .table-action-btn {
        flex: 1;
    }

    .table-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .data-table th,
    .data-table td {
        padding: 1rem;
    }
}

/* Hover animation for rows */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.data-table tbody tr {
    animation: slideIn 0.3s ease-out;
    animation-fill-mode: both;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.25s; }