/* Azumo Color Palette - Light Theme with Better Contrast */
:root {
    --azumo-primary-bg: #ffffff;
    --azumo-secondary-bg: #f8f9fa;
    --azumo-sidebar-bg: #2c3e50;
    --azumo-sidebar-hover: #34495e;
    --azumo-sidebar-active: #3498db;
    --azumo-text-primary: #2c3e50;
    --azumo-text-secondary: #6c757d;
    --azumo-text-light: #ffffff;
    --azumo-accent: #3498db;
    --azumo-accent-hover: #2980b9;
    --azumo-border: #e9ecef;
    --azumo-border-dark: #dee2e6;
    --azumo-success: #28a745;
    --azumo-error: #dc3545;
    --azumo-warning: #ffc107;
    --azumo-card-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--azumo-secondary-bg);
    color: var(--azumo-text-primary);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Login page specific styles */
body:has(.login-container) {
    background-color: var(--azumo-primary-bg);
    margin: 0;
    padding: 0;
}

/* Responsive design for login */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-image-side {
        min-height: 40vh;
        flex: 0 0 40vh;
    }
    
    .login-form-side {
        flex: 1;
    }
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background-color: var(--azumo-sidebar-bg);
    color: var(--azumo-text-light);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header .logo-text,
.sidebar.collapsed .sidebar-nav span,
.sidebar.collapsed .user-details,
.sidebar.collapsed .logout-btn {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 1.5rem 0.5rem;
}

.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 0.875rem 0.5rem;
}

.sidebar.collapsed .sidebar-footer {
    padding: 1.25rem 0.5rem;
}

.sidebar.collapsed .user-info {
    justify-content: center;
}

.sidebar.collapsed .user-photo {
    margin: 0 auto;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
}

.sidebar-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--azumo-text-light);
}

.sidebar.collapsed .sidebar-toggle {
    margin: 0 auto;
}

.sidebar-header .logo {
    height: 36px;
    width: auto;
    /* Logo PNG already has white text on blue background, no filter needed */
}

/* Logo in login page */
.login-box .logo {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
    display: block;
}

.sidebar-header .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--azumo-text-light);
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .logo {
    display: none;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: var(--azumo-sidebar-hover);
    color: var(--azumo-text-light);
    border-left-color: rgba(255,255,255,0.3);
}

.sidebar-nav a.active {
    background-color: var(--azumo-sidebar-active);
    color: var(--azumo-text-light);
    border-left-color: var(--azumo-text-light);
}

.sidebar-nav a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar.collapsed .sidebar-nav a {
    position: relative;
}

.sidebar.collapsed .sidebar-nav a:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.5rem;
    background-color: var(--azumo-sidebar-bg);
    color: var(--azumo-text-light);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    font-size: 0.875rem;
    pointer-events: none;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.9);
}

.user-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.logout-btn:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--azumo-text-light);
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    width: calc(100% - 260px);
    overflow-x: hidden;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
}

/* Top Header */
.top-header {
    background-color: var(--azumo-primary-bg);
    border-bottom: 1px solid var(--azumo-border);
    padding: 1rem 2rem;
    box-shadow: var(--azumo-card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--azumo-text-primary);
    margin: 0;
}

/* Main Container */
main {
    padding: 2rem;
    flex: 1;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Allow flex item to shrink below content size */
}

.container {
    background-color: var(--azumo-primary-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--azumo-card-shadow);
    border: 1px solid var(--azumo-border);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--azumo-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--azumo-accent-hover);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-secondary {
    background-color: var(--azumo-secondary-bg);
    color: var(--azumo-text-primary);
    border: 1px solid var(--azumo-border-dark);
}

.btn-secondary:hover {
    background-color: var(--azumo-border);
}

.btn-danger {
    background-color: var(--azumo-error);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Login Page */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-image-side {
    flex: 1;
    background-image: url('/images/login-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.login-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.login-form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--azumo-primary-bg);
}

.login-box {
    background-color: var(--azumo-primary-bg);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-box h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--azumo-text-primary);
}

.login-box p {
    color: var(--azumo-text-secondary);
    margin-bottom: 2rem;
}

.google-btn {
    width: 100%;
    padding: 1rem;
    background-color: white;
    color: #333;
    border: 1px solid var(--azumo-border-dark);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.google-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-message {
    color: var(--azumo-error);
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #f8d7da;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

/* Dashboard */
.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--azumo-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--azumo-border);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--azumo-secondary-bg);
    border: 1px solid var(--azumo-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    box-shadow: var(--azumo-card-shadow);
    transform: translateY(-2px);
}

.stat-card h3 {
    color: var(--azumo-text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azumo-accent);
    flex: 1;
}

.gender-stats {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--azumo-border);
}

.gender-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.gender-icon {
    font-size: 0.75rem;
    color: var(--azumo-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.gender-icon.gender-male {
    color: #3498db; /* Blue for Male */
}

.gender-icon.gender-female {
    color: #e91e63; /* Pink for Female */
}

.gender-icon.gender-other {
    color: #9b59b6; /* Purple for Other */
}

.stat-card-birthdays {
    grid-column: span 1;
}

.stat-card-birthdays .value {
    margin-bottom: 0.5rem;
}

.birthdays-list {
    margin-top: 1rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.birthdays-list::-webkit-scrollbar {
    width: 6px;
}

.stat-card-ptos {
    grid-column: span 1;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-ptos:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-card-ptos .value {
    margin-bottom: 0.5rem;
}

.stat-card-recent-hires {
    grid-column: span 1;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-recent-hires:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ptos-list {
    margin-top: 1rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.ptos-list::-webkit-scrollbar {
    width: 6px;
}

.ptos-list::-webkit-scrollbar-track {
    background: var(--azumo-secondary-bg);
    border-radius: 3px;
}

.ptos-list::-webkit-scrollbar-thumb {
    background: var(--azumo-border-dark);
    border-radius: 3px;
}

.ptos-list::-webkit-scrollbar-thumb:hover {
    background: var(--azumo-text-secondary);
}

.birthdays-list::-webkit-scrollbar-track {
    background: var(--azumo-secondary-bg);
    border-radius: 3px;
}

.birthdays-list::-webkit-scrollbar-thumb {
    background: var(--azumo-border-dark);
    border-radius: 3px;
}

.birthdays-list::-webkit-scrollbar-thumb:hover {
    background: var(--azumo-text-secondary);
}

.birthday-item {
    transition: background-color 0.2s;
    margin-bottom: 0.5rem;
}

.birthday-item:last-child {
    margin-bottom: 0;
}

.birthday-item:hover {
    background-color: rgba(52, 152, 219, 0.05) !important;
}

.birthday-today {
    border-left: 3px solid var(--azumo-accent);
    padding-left: 0.75rem !important;
    background-color: rgba(52, 152, 219, 0.1) !important;
}

/* Employees Table */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    max-width: 400px;
}

.search-box input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--azumo-primary-bg);
    border: 1px solid var(--azumo-border-dark);
    border-radius: 6px;
    color: var(--azumo-text-primary);
    font-size: 0.95rem;
}

.search-box input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--azumo-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.table-container {
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid var(--azumo-border);
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    display: block;
    box-sizing: border-box;
}

.table-container table {
    width: 100%;
    min-width: 100%;
    white-space: nowrap; /* Prevent text wrapping in table cells */
    border-collapse: collapse;
    table-layout: auto; /* Use auto layout for flexible column sizing */
}

/* Ensure table cells have proper sizing */
.table-container th,
.table-container td {
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.75rem 0.5rem; /* Reduce padding for better fit */
}

/* Override padding for better spacing in employees table */
#employeesTable th,
#employeesTable td {
    padding: 0.875rem 0.75rem;
}

/* Specific column widths for better layout */
#employeesTable th:nth-child(1),
#employeesTable td:nth-child(1) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}

#employeesTable th:nth-child(2),
#employeesTable td:nth-child(2),
#employeesTable th:nth-child(3),
#employeesTable td:nth-child(3) {
    min-width: 120px;
}

#employeesTable th:nth-child(4),
#employeesTable td:nth-child(4) {
    min-width: 180px;
}

#employeesTable th:nth-child(5),
#employeesTable td:nth-child(5) {
    min-width: 150px;
}

#employeesTable th:nth-child(6),
#employeesTable td:nth-child(6),
#employeesTable th:nth-child(7),
#employeesTable td:nth-child(7) {
    min-width: 100px;
}

#employeesTable th:nth-child(8),
#employeesTable td:nth-child(8) {
    min-width: 110px;
}

#employeesTable th:nth-child(9),
#employeesTable td:nth-child(9),
#employeesTable th:nth-child(10),
#employeesTable td:nth-child(10) {
    min-width: 130px;
}

#employeesTable th:nth-child(11),
#employeesTable td:nth-child(11) {
    min-width: 80px;
}

/* Pagination controls */
#paginationControls button:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

#paginationControls button:not(:disabled):hover {
    background-color: var(--azumo-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .table-container {
        overflow-x: visible;
    }
    
    .table-container table {
        display: block;
        width: 100%;
    }
    
    .table-container thead {
        display: none;
    }
    
    .table-container tbody {
        display: block;
        width: 100%;
    }
    
    .table-container tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--azumo-border);
        border-radius: 8px;
        padding: 0.75rem;
        background: var(--azumo-secondary-bg);
    }
    
    .table-container td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
        text-align: right;
    }
    
    .table-container td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        margin-right: 1rem;
        color: var(--azumo-text-secondary);
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--azumo-primary-bg);
}

thead {
    background-color: var(--azumo-secondary-bg);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--azumo-text-primary);
    border-bottom: 2px solid var(--azumo-border-dark);
    white-space: nowrap;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--azumo-border);
    color: var(--azumo-text-secondary);
}

tbody tr {
    transition: background-color 0.2s;
    cursor: pointer;
}

tbody tr:hover {
    background-color: var(--azumo-secondary-bg);
}

.employee-photo-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--azumo-border);
    display: block;
    margin: 0 auto;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--azumo-text-secondary);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.15rem;
}

.badge-billable,
.badge-active {
    background-color: #d4edda;
    color: #155724;
}

.badge-nonbillable,
.badge-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-onleave {
    background-color: #fff3cd;
    color: #856404;
}

.badge-pending {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Role badges with distinct colors */
.badge-role-super-admin {
    background-color: #6f42c1;
    color: #ffffff;
}

.badge-role-admin {
    background-color: #007bff;
    color: #ffffff;
}

.badge-role-manager {
    background-color: #28a745;
    color: #ffffff;
}

.badge-role-employee {
    background-color: #6c757d;
    color: #ffffff;
}

.badge-me {
    background-color: var(--azumo-accent);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Employee Profile */
/* Employee Profile Header (Green Bar) */
.employee-profile-header {
    background-color: var(--azumo-accent);
    color: var(--azumo-text-light);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.employee-profile-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.employee-name-header {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: var(--azumo-text-light);
}

.employee-role-header {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

.btn-white {
    background-color: var(--azumo-primary-bg);
    color: var(--azumo-text-primary);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-white:hover {
    background-color: rgba(255,255,255,0.95);
}

.btn-white-secondary {
    background-color: transparent;
    color: var(--azumo-text-light);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-white-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Employee Profile Main Container */
.employee-profile-main {
    background-color: var(--azumo-secondary-bg);
    min-height: calc(100vh - 60px);
}

.employee-profile-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Left Sidebar (Employee Summary) */
.employee-profile-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.employee-summary-card {
    background-color: var(--azumo-primary-bg);
    border: 1px solid var(--azumo-border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--azumo-card-shadow);
    position: sticky;
    top: 2rem;
}

.employee-summary-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--azumo-border);
}

.employee-summary-contact {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--azumo-border);
}

.summary-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.summary-contact-item:last-child {
    margin-bottom: 0;
}

.employee-summary-details {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--azumo-border);
}

.summary-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.summary-detail-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--azumo-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summary-value {
    font-size: 0.9rem;
    color: var(--azumo-text-primary);
    font-weight: 500;
}

.employee-summary-manager {
    margin-top: 1rem;
}

.summary-manager-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.summary-manager-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Main Content Area */
.employee-profile-content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Legacy profile styles (keeping for compatibility) */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--azumo-border);
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid var(--azumo-border);
    box-shadow: var(--azumo-card-shadow);
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--azumo-text-primary);
}

.profile-info .email {
    color: var(--azumo-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-info .position {
    color: var(--azumo-accent);
    font-size: 1rem;
    font-weight: 500;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-card {
    background-color: var(--azumo-secondary-bg);
    border: 1px solid var(--azumo-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--azumo-border);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--azumo-text-primary);
}

.section-content {
    color: var(--azumo-text-secondary);
    line-height: 1.8;
}

.section-content a {
    color: var(--azumo-accent);
    text-decoration: none;
}

.section-content a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--azumo-primary-bg);
    margin: 2% auto;
    padding: 0;
    border-radius: 8px;
    width: 95%;
    max-width: 95vw;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 800px;
    }
}

.modal-large {
    max-width: 1000px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--azumo-border);
}

.modal-header h2 {
    margin: 0;
    color: var(--azumo-text-primary);
}

.close {
    color: var(--azumo-text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--azumo-text-primary);
}

form {
    padding: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--azumo-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    background-color: var(--azumo-primary-bg);
    border: 1px solid var(--azumo-border-dark);
    border-radius: 6px;
    color: var(--azumo-text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azumo-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--azumo-border);
}

.details-content {
    padding: 1.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 600;
    color: var(--azumo-text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--azumo-text-primary);
    font-size: 0.95rem;
}

.detail-value.empty {
    color: var(--azumo-text-secondary);
    font-style: italic;
}

.detail-value a {
    color: var(--azumo-accent);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

/* Tabs */
.tabs-container {
    margin: 0 0 2rem 0;
    border-bottom: 2px solid var(--azumo-border);
    background-color: var(--azumo-primary-bg);
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.tabs-container::-webkit-scrollbar {
    height: 6px;
}

.tabs-container::-webkit-scrollbar-track {
    background: var(--azumo-secondary-bg);
}

.tabs-container::-webkit-scrollbar-thumb {
    background: var(--azumo-border-dark);
    border-radius: 3px;
}

.tabs-container::-webkit-scrollbar-thumb:hover {
    background: var(--azumo-text-secondary);
}

.tabs {
    display: flex;
    gap: 0;
    min-width: max-content;
    width: 100%;
    padding: 0 0.5rem;
    align-items: stretch;
    height: auto;
    overflow-y: hidden;
}

.tab-button {
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--azumo-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    height: auto;
    overflow: visible;
    line-height: 1.4;
}

.tab-button:hover {
    color: var(--azumo-text-primary);
    background-color: var(--azumo-secondary-bg);
}

.tab-button.active {
    color: var(--azumo-accent);
    border-bottom-color: var(--azumo-accent);
    background-color: var(--azumo-primary-bg);
    border-bottom-color: var(--azumo-accent);
    font-weight: 600;
}

.tab-content {
    margin-top: 0;
    background-color: var(--azumo-primary-bg);
    border-radius: 8px;
    padding: 0;
}

.tab-pane {
    display: none !important;
}

.tab-pane.active {
    display: block !important;
}

/* Ensure Employee Record tab is hidden when not active */
#record-tab:not(.active) {
    display: none !important;
}

/* Ensure all tabs are hidden by default except the active one */
.tab-content .tab-pane:not(.active) {
    display: none !important;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    grid-column: 1 / -1;
}

.info-item-group .info-item {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .info-item-group {
        grid-template-columns: 1fr;
    }
}

.info-label {
    font-weight: 700;
    color: var(--azumo-text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--azumo-accent);
    padding-bottom: 0.25rem;
    color: var(--azumo-accent);
}

.info-value {
    color: var(--azumo-text-primary);
    font-size: 1rem;
    min-height: 1.5rem;
    font-weight: 400;
    padding-top: 0.25rem;
}

.info-value:empty::before {
    content: '-';
    color: var(--azumo-text-secondary);
    font-style: italic;
}

.assignment-card,
.record-card {
    transition: box-shadow 0.2s;
}

.assignment-card:hover,
.record-card:hover {
    box-shadow: var(--azumo-card-shadow);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.jira-epic-box {
    padding: 1rem;
    background-color: var(--azumo-secondary-bg);
    border-radius: 6px;
    border-left: 4px solid var(--azumo-accent);
    margin-bottom: 2rem;
}

.jira-epic-box .epic-label {
    font-weight: 600;
    color: var(--azumo-text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.jira-epic-box .epic-link {
    color: var(--azumo-accent);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.jira-epic-box .epic-link:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--azumo-primary-bg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--azumo-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--azumo-text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--azumo-text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--azumo-text-primary);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--azumo-border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--azumo-text-primary);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--azumo-border-dark);
    border-radius: 6px;
    background-color: var(--azumo-primary-bg);
    color: var(--azumo-text-primary);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azumo-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.admin-tab-content {
    display: block;
}

/* Edit Mode Styles */
.edit-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--azumo-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    background-color: var(--azumo-primary-bg);
    color: var(--azumo-text-primary);
}

.edit-input:focus {
    outline: none;
    border-color: var(--azumo-accent);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.edit-input[type="date"],
.edit-input[type="email"],
.edit-input[type="tel"],
.edit-input[type="url"],
.edit-input[type="number"] {
    width: 100%;
}

.edit-input[type="number"] {
    -moz-appearance: textfield;
}

.edit-input[type="number"]::-webkit-outer-spin-button,
.edit-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Inline Edit Button Styles */
.inline-edit-btn {
    background: none;
    border: none;
    color: var(--azumo-text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
    vertical-align: middle;
}

.inline-edit-btn:hover {
    opacity: 1;
    color: var(--azumo-accent);
}

.info-item {
    position: relative;
}

.info-item:hover .inline-edit-btn {
    opacity: 0.8;
}

.field-display-value {
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 260px; /* Keep full width on mobile when visible */
    }

    .main-content {
        margin-left: 0;
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }

    .form-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

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

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .employee-profile-container {
        flex-direction: column;
    }
    
    .employee-profile-sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .employee-summary-card {
        position: static;
    }
    
    .employee-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .employee-profile-header-content {
        width: 100%;
    }
    
    #editButtonContainer {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

/* Permissions Matrix Styles */
.permissions-matrix-container {
    margin-top: 1rem;
    border: 1px solid var(--azumo-border);
    border-radius: 6px;
    background: var(--azumo-primary-bg);
    overflow-x: auto;
}

.permissions-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.permissions-matrix thead {
    background-color: var(--azumo-secondary-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.permissions-matrix th {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--azumo-text-primary);
    border: 1px solid var(--azumo-border);
    white-space: nowrap;
}

.matrix-role-header {
    background-color: var(--azumo-sidebar-bg) !important;
    color: var(--azumo-text-light) !important;
    position: sticky;
    left: 0;
    z-index: 20;
    min-width: 200px;
    text-align: left !important;
    padding-left: 1rem !important;
}

.matrix-resource-header {
    background-color: var(--azumo-accent) !important;
    color: var(--azumo-text-light) !important;
    font-size: 0.85rem;
}

.matrix-permission-header {
    background-color: var(--azumo-secondary-bg) !important;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--azumo-text-secondary);
    padding: 0.5rem 0.25rem !important;
}

.permissions-matrix tbody tr {
    border-bottom: 1px solid var(--azumo-border);
}

.permissions-matrix tbody tr:hover {
    background-color: var(--azumo-secondary-bg);
}

.matrix-role-cell {
    position: sticky;
    left: 0;
    background-color: var(--azumo-primary-bg);
    z-index: 15;
    padding: 1rem !important;
    border-right: 2px solid var(--azumo-border-dark);
    min-width: 200px;
    vertical-align: top;
}

.matrix-role-name {
    font-weight: 600;
    color: var(--azumo-text-primary);
    margin-bottom: 0.25rem;
}

.matrix-role-desc {
    font-size: 0.8rem;
    color: var(--azumo-text-secondary);
    line-height: 1.4;
}

.matrix-cell {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--azumo-border);
    min-width: 60px;
    font-size: 1.1rem;
    font-weight: 600;
}

.matrix-cell-checked {
    background-color: #d4edda;
    color: var(--azumo-success);
}

.matrix-cell-unchecked {
    background-color: #f8f9fa;
    color: var(--azumo-text-secondary);
}

.matrix-cell-checked:hover {
    background-color: #c3e6cb;
}

/* Notification/Alert Pop-up System */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    background-color: var(--azumo-primary-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid var(--azumo-accent);
}

.notification-popup.success {
    border-left-color: var(--azumo-success);
}

.notification-popup.error {
    border-left-color: var(--azumo-error);
}

.notification-popup.warning {
    border-left-color: var(--azumo-warning);
}

.notification-popup-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-popup.success .notification-popup-icon {
    color: var(--azumo-success);
}

.notification-popup.error .notification-popup-icon {
    color: var(--azumo-error);
}

.notification-popup.warning .notification-popup-icon {
    color: var(--azumo-warning);
}

.notification-popup-content {
    flex: 1;
}

.notification-popup-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--azumo-text-primary);
}

.notification-popup-message {
    font-size: 0.9rem;
    color: var(--azumo-text-secondary);
    line-height: 1.4;
}

.notification-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--azumo-text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-popup-close:hover {
    background-color: var(--azumo-border);
    color: var(--azumo-text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-popup.closing {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Confirmation Modal */
.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.confirmation-modal-overlay.closing {
    animation: fadeOut 0.2s ease-out forwards;
}

.confirmation-modal {
    background-color: var(--azumo-primary-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.2s ease-out;
}

.confirmation-modal.closing {
    animation: scaleOut 0.2s ease-out forwards;
}

.confirmation-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--azumo-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.confirmation-modal-icon {
    font-size: 2rem;
    color: var(--azumo-warning);
}

.confirmation-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--azumo-text-primary);
    flex: 1;
}

.confirmation-modal-body {
    padding: 1.5rem;
    color: var(--azumo-text-secondary);
    line-height: 1.6;
}

.confirmation-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--azumo-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.confirmation-modal-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.confirmation-modal-btn-cancel {
    background-color: var(--azumo-secondary-bg);
    color: var(--azumo-text-primary);
}

.confirmation-modal-btn-cancel:hover {
    background-color: var(--azumo-border);
}

.confirmation-modal-btn-confirm {
    background-color: var(--azumo-error);
    color: white;
}

.confirmation-modal-btn-confirm:hover {
    background-color: #c82333;
}

.confirmation-modal-btn-confirm.primary {
    background-color: var(--azumo-accent);
}

.confirmation-modal-btn-confirm.primary:hover {
    background-color: var(--azumo-accent-hover);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

.matrix-cell-unchecked:hover {
    background-color: #e9ecef;
}

/* Responsive adjustments for matrix */
@media (max-width: 1200px) {
    .permissions-matrix {
        font-size: 0.85rem;
    }
    
    .matrix-permission-header {
        font-size: 0.75rem;
        padding: 0.4rem 0.2rem !important;
    }
    
    .matrix-cell {
        padding: 0.6rem 0.4rem;
        min-width: 50px;
    }
}

/* Pending Information Table Styles - Compact Design */
#pendingTable {
    font-size: 0.875rem;
    table-layout: fixed;
    width: 100%;
}

#pendingTable th,
#pendingTable td {
    padding: 0.5rem;
    font-size: 0.875rem;
    vertical-align: middle;
}

#pendingTable th {
    background-color: var(--azumo-secondary-bg);
    font-weight: 600;
    border-bottom: 2px solid var(--azumo-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

#pendingTable tbody tr {
    border-bottom: 1px solid var(--azumo-border);
    transition: background-color 0.2s ease;
}

#pendingTable tbody tr:hover {
    background-color: var(--azumo-secondary-bg);
}

#pendingTable tbody tr:last-child {
    border-bottom: none;
}

/* Checkbox column */
#pendingTable th:first-child,
#pendingTable td:first-child {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center;
    padding: 0.5rem 0.25rem;
}

#pendingTable input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--azumo-accent);
}

/* Compact column widths */
#pendingTable th:nth-child(2),
#pendingTable td:nth-child(2) {
    width: 12%;
    min-width: 100px;
}

#pendingTable th:nth-child(3),
#pendingTable td:nth-child(3) {
    width: 12%;
    min-width: 100px;
}

#pendingTable th:nth-child(4),
#pendingTable td:nth-child(4) {
    width: 20%;
    min-width: 180px;
}

#pendingTable th:nth-child(5),
#pendingTable td:nth-child(5) {
    width: 35%;
    min-width: 200px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#pendingTable th:nth-child(6),
#pendingTable td:nth-child(6) {
    width: 10%;
    min-width: 120px;
    text-align: center;
}

/* Filter input styling */
#filterInput {
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#filterInput:focus {
    outline: none;
    border-color: var(--azumo-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Selected row highlighting */
#pendingTable tbody tr[style*="background-color"] {
    background-color: rgba(52, 152, 219, 0.1) !important;
}

/* Toolbar button styles */
.toolbar .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
}

.toolbar #bulkEmailBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bulk email modal list */
#bulkRecipientsList {
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.875rem;
}

#bulkRecipientsList ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

#bulkRecipientsList li {
    padding: 0.5rem;
    border-bottom: 1px solid var(--azumo-border);
}

#bulkRecipientsList li:last-child {
    border-bottom: none;
}

/* Responsive adjustments for pending information table */
@media (max-width: 768px) {
    #pendingTable {
        font-size: 0.8rem;
    }
    
    #pendingTable th,
    #pendingTable td {
        padding: 0.4rem 0.3rem;
        font-size: 0.8rem;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .toolbar > div {
        width: 100%;
    }
    
    #filterInput {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .toolbar .btn-sm {
        flex: 1;
        min-width: auto;
    }
}
