/* ======= General Body ======= */
body {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ======= Page Container ======= */
.page-container {
    max-width: 1600px;
    margin: 0px auto 50px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ======= Table Header ======= */
.table-header {
    text-align: center;
    margin-bottom: 30px;
}

.table-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.table-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* ======= Modern Table ======= */
.modern-table {
    margin: 0;
    border-collapse: collapse;
    width: 90%;
}

.modern-table thead th {
     background: linear-gradient(to right, rgb(129, 128, 128), rgb(129, 128, 128));
    color: white;
    font-weight: 600;
    padding: 10px 5px;   /* ↓ reduced padding */
    text-align: center;
    border: 2px solid white;
    font-size: 15px;
  
}

.modern-table tbody td {
    padding: 18px 15px;
    vertical-align: middle;
    font-size: 14px;
    color: #495057;
    border: 1px solid #dee2e6;
    background: white;
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover td {
    background: #f8f9fa;
}

/* ======= Table Cell Styles ======= */
.office-type-cell {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #dfdcdcff 0%, #f1f1efff 100%) !important;
    text-align: center;
    vertical-align: middle;
    border: 2px solid #fff !important;
}

.location-cell {
    font-weight: 600;
    color: #495057;
    background: #ffffff !important;
    text-align: center;
    vertical-align: middle;
    border: 2px solid #fff !important;
}

.no-cell {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    background: #f8f9fa !important;
}

.name-cell {
    font-weight: 600;
    color: #2c3e50;
    position: relative;
    cursor: pointer;
}

.designation-cell {
    color: #6c757d;
    font-style: italic;
}

.phone-cell {
    color: #28a745;
    font-weight: 500;
}

.phone-cell i {
    margin-right: 8px;
    color: #28a745;
}

.email-cell {
    color: #007bff;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
}

.email-cell a {
    color: #007bff;
    text-decoration: none;
}

.email-cell a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ======= Profile Image Tooltip ======= */
.name-cell .profile-tooltip {
    display: none;
    position: absolute;
    top: 100%; /* show below the name */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10;
    margin-top: 10px;
}

.name-cell:hover .profile-tooltip {
    display: block;
}

.name-cell .profile-tooltip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ======= Responsive ======= */
@media (max-width: 1200px) {
    .page-container {
        padding: 20px;
        margin: 80px auto 40px;
    }
    .modern-table {
        font-size: 12px;
    }
    .modern-table thead th,
    .modern-table tbody td {
        padding: 12px 8px;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 15px;
        margin: 60px auto 30px;
    }
    .table-header h2 {
        font-size: 24px;
    }
}