/* ===================================
   Custom Admin Tables Styling
   =================================== */

/* Table Container */
.table-responsive {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Table Styling */
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: #ffffff;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table thead th:first-child {
    border-top-left-radius: 0;
}

.table thead th:last-child {
    border-top-right-radius: 0;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    background: #f8f9fc;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: #2d3748;
    font-size: 0.9rem;
}

/* User Avatar Styling */
.symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.symbol img {
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.table tbody tr:hover .symbol img {
    border-color: #667eea;
    transform: scale(1.1);
}

/* Text Links */
.table tbody td a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.table tbody td a:hover {
    color: #667eea;
}

.text-dark-75 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.badge-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
}

.badge-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: #fff;
}

.badge-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: #fff;
}

.badge-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: #fff;
}

/* Action Buttons */
.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.15rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border: none;
    color: #fff;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border: none;
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

/* Empty State */
.text-center {
    color: #a0aec0;
    font-size: 1rem;
    padding: 1.2rem 1rem;
}

/* Page Header */
.page-title-box {
    background: linear-gradient(135deg, #080d23 0%, #152d71 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-title-box h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.page-title-box .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.page-title-box .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.page-title-box .breadcrumb-item.active {
    color: #fff;
}

.page-title-box .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background: #f8f9fc;
    border-bottom: 2px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

.card-title {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
    justify-content: center;
}

.page-item .page-link {
    border: none;
    color: #667eea;
    border-radius: 8px;
    margin: 0 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.page-item .page-link:hover {
    background: #f8f9fc;
    transform: translateY(-2px);
}

/* Filter Section */
.filter-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.filter-box .form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.filter-box .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* RTL Support */
[dir="rtl"] .table tbody tr:hover {
    transform: translateX(-2px);
}

[dir="rtl"] .page-title-box .breadcrumb-item + .breadcrumb-item::before {
    content: "\\"
}

/* Responsive */
@media (max-width: 768px) {
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border: none;
    }
    
    .table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #667eea;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 1000px 100%;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fc;
    border-bottom: 2px solid #e2e8f0;
}

.toolbar h5 {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
}

.toolbar .btn-group {
    gap: 0.5rem;
}
