﻿

.modern-table-card {
    border-radius: 20px;
    overflow: hidden;
    animation: fadeInUp .6s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* HEADER */

.modern-table-header {
    padding: 22px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
}

/* TABLE */

.modern-table {
    margin-bottom: 0;
}

    .modern-table thead th {
        position: sticky;
        top: 0;
        background: #f8fafc;
        z-index: 10;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        color: #374151;
        border: none;
        white-space: nowrap;
    }

    .modern-table tbody td {
        padding: 16px;
        border-top: 1px solid #eef2f7;
        vertical-align: middle;
    }

    .modern-table tbody tr {
        transition: .30s;
    }

        .modern-table tbody tr:nth-child(even) {
            background: #fafafa;
        }

        .modern-table tbody tr:hover {
            background: #edf4ff;
            transform: scale(1.003);
        }

/* AVATAR */

.employee-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#60a5fa);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(37,99,235,.25);
}

/* ROW NUMBER */

.row-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-weight: 700;
}

/* BADGES */

.badge {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
}

/* PURPLE */

.bg-purple {
    background: #7c3aed !important;
    color: #fff;
}

/* SCROLLBAR */

.table-responsive {
    max-height: 650px;
}

    .table-responsive::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 20px;
    }

/* ANIMATION */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLET */

@media(max - width:992px) {
    .modern-table {
        font-size: 13px;
    }

    .employee-avatar {
        width: 40px;
        height: 40px;
    }
}

/* MOBILE */

@media(max - width:768px) {
    .modern-table-header {
        text-align: center;
    }

        .modern-table-header .d-flex {
            flex-direction: column;
            gap: 10px;
        }

    .employee-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .badge {
        font-size: 11px;
    }
}

.container {
    max-width: 100%;
}