/* css/styles.css - Resource Planner Stylesheet */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* ==================== HEADER ==================== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* ==================== USER INFO ==================== */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
}

.user-role {
    font-size: 12px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 2px;
    display: inline-block;
}

.switch-user {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.switch-user:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    height: calc(100vh - 140px);
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
}

.sidebar h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 18px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.team-member.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.member-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.team-member.selected .member-avatar {
    background: white;
    color: #667eea;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    font-size: 14px;
}

.member-role {
    font-size: 12px;
    opacity: 0.7;
}

/* ==================== CALENDAR CONTAINER ==================== */
.calendar-container {
    padding: 30px;
    overflow-y: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-header h2 {
    font-size: 24px;
    color: #2c3e50;
}

/* ==================== MONTH NAVIGATION ==================== */
.month-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.month-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.month-btn:hover {
    background: #667eea;
    color: white;
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 150px;
    text-align: center;
}

/* ==================== VIEW TOGGLE ==================== */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.toggle-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: #667eea;
    color: white;
}

.toggle-btn:hover {
    transform: translateY(-2px);
}

/* ==================== ADMIN CONTROLS ==================== */
.admin-controls {
    display: flex;
    gap: 10px;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-cancel {
    background: #e9ecef;
    color: #495057;
}

.btn-cancel:hover {
    background: #dee2e6;
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3);
}

.btn-full {
    width: 100%;
}

/* ==================== CALENDAR GRID ==================== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.day-header {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    padding: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.day-cell {
    min-height: 100px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.day-cell.today {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 3px solid black;
}
.day-cell.overnight {
    background-color: #EAFFA6;
}
.day-cell.holiday {
    background-color: #eaff00;
}
.day-cell.sick-leave {
    background-color: #776161;
}

.day-cell.day-off {
    background-color: #9e8654;
}
.day-cell.unpaid {
    background-color: #ff0000;
}

.day-cell.bank-holiday {
    background-color: #eaff00;
}

.day-cell:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.day-cell.other-month {
    opacity: 0.3;
}


.day-number {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

/* ==================== JOB ITEMS ==================== */
.job-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 3px;
    /* height: 50%; */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    align-content: center;
    text-align: center;
}
.job-item.res {
    background: linear-gradient(135deg, #0015ff 0%, #5500ff 100%);
}
.job-item.trd {
    background: linear-gradient(135deg, #ff0000 0%, #ff0000 100%);
}
.job-item.int {
    background: linear-gradient(135deg, #6dfbb6 0%, #00ff55 100%);
    color: black;
}

.job-item:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* ==================== WEEK VIEW ==================== */
.week-view {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap: 10px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.time-slot {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.slot-cell {
    padding: 10px;
    border: 1px solid #f0f0f0;
    min-height: 60px;
    position: relative;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.slot-cell:hover {
    background: #e9ecef;
}

/* Week view with single row layout */
.week-view-single {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    padding: 20px;
    border-radius: 15px;
}

.week-view-single .week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
    background: #dee2e6;
}

.week-view-single .week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #dee2e6;
    min-height: 400px;
}

.day-cell-week {
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

/* AM section - top half */
.am-section {
    flex: 1;
    border-bottom: 1px dashed #dee2e6;
    padding: 8px;
    position: relative;
    background: #f8f9fa;
}
.am-section.overnight {
    background-color: #EAFFA6;
}
.am-section.holiday {
    background-color: #eaff00;
    color: black;
}
.am-section.sick-leave {
    background: #776161;
}

.am-section.day-off {
    background: #9e8654;
}
.am-section.unpaid {
    background: #ff0000;
}
.am-section.bank-holiday {
    background: #eaff00;
}

/* PM section - bottom half */
.pm-section {
    flex: 1;
    padding: 8px;
    position: relative;
    border-bottom: 1px dashed #dee2e6;
    background: #f8f9fa;
}
.pm-section.overnight {
    background: #EAFFA6;
}
.pm-section.holiday {
    background: #eaff00;
    color: black;
}
.pm-section.sick-leave {
    background: #776161;
}

.pm-section.day-off {
    background: #9e8654;
}
.pm-section.unpaid {
    background: #ff0000;
}
.pm-section.bank-holiday {
    background: #eaff00;
}

/* All day section - full cell */
.all-day-section {
    flex: 1;
    padding: 8px;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}
.all-day-section.overnight {
    background: #EAFFA6;
}
.all-day-section.holiday {
    background: #eaff00;
    color: black;
}
.all-day-section.sick-leave {
    background: #776161;
}

.all-day-section.day-off {
    background: #9e8654;
}
.all-day-section.unpaid {
    background: #ff0000;
}
.all-day-section.bank-holiday {
    background: #eaff00;
}

/* Period labels when empty */
.period-label {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    color: #adb5bd;
    font-weight: 600;
}

/* Job items in week view */
.job-am, .job-pm {
    margin-bottom: 4px;
    font-size: 12px;
    padding: 6px;
}

.job-all-day {
    margin-bottom: 6px;
    padding: 10px;
}

.day-cell-week .job-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.day-cell-week .job-assignee {
    font-size: 10px;
    opacity: 0.8;
}

.today-view {
    background: white;
    padding: 20px;
    border-radius: 15px;
}

.today-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.today-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.today-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.period-section {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.period-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 15px;
    font-weight: 600;
}

.period-content {
    padding: 15px;
    min-height: 100px;
}

.today-job-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.today-job-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.today-job-item.user-job {
    border-left-color: #28a745;
}

.today-job-item.completed {
    opacity: 0.7;
    border-left-color: #6c757d;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.job-title {
    font-weight: 600;
/*    color: white; */
}

.job-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e9ecef;
    color: #495057;
}

.job-assignee {
    font-size: 13px;
    color: #6c757d;
}

.assignee-name::before {
    content: "👤 ";
}

.no-jobs {
    text-align: center;
    color: #adb5bd;
    font-style: italic;
    padding: 20px;
}

.today-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.today-summary h4 {
    margin: 0 0 10px 0;
    color: #495057;
}



/* Today View - Redesigned */
.today-view {
    background: white;
    padding: 20px;
    border-radius: 15px;
}

.today-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.today-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.today-date {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 16px;
}

.today-team-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.today-member-row {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    align-items: center;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.member-name {
    font-weight: 600;
    color: #333;
}

.member-schedule {
    display: flex;
    gap: 10px;
}

.schedule-block {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 10px;
    min-width: 150px;
}

.block-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.schedule-job {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s;
}

.schedule-job:hover {
    transform: translateX(3px);
}

.schedule-job.completed {
    background: #6c757d;
    text-decoration: line-through;
}

.schedule-empty {
    color: #adb5bd;
    font-style: italic;
    font-size: 13px;
    padding: 6px 10px;
}

.all-day-block {
    background: #fff3cd;
}

.all-day-block .schedule-job {
    background: #ffc107;
    color: #333;
}

.member-job-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
}

.job-count {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.job-label {
    font-size: 12px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .today-member-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .member-schedule {
        flex-direction: column;
    }
}

/* Today View - Simple List */
.today-view-simple {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.today-view-simple h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 22px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.today-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.today-list-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.today-list-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.today-person {
    font-weight: 600;
    color: #495057;
    min-width: 150px;
}

.today-separator {
    margin: 0 15px;
    color: #adb5bd;
}

.today-job {
    flex: 1;
    color: #333;
}

.today-period {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 15px;
}

.today-list-item.completed {
    opacity: 0.6;
}

.today-list-item.completed .today-job {
    text-decoration: line-through;
}

.today-list-item.completed .today-period {
    background: #6c757d;
}

.today-empty {
    text-align: center;
    color: #adb5bd;
    font-style: italic;
    padding: 40px;
    font-size: 16px;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 24px;
    color: #2c3e50;
}

.close-modal {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #495057;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* ==================== LOGIN INFO ==================== */
.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
}

.login-info p {
    font-weight: 600;
    margin-bottom: 10px;
}

.login-info ul {
    list-style: none;
}

.login-info li {
    padding: 5px 0;
    color: #6c757d;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* ==================== LOADING & ERROR STATES ==================== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: #667eea;
}

.loading::after {
    content: '⋯';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '⋯'; }
    40% { content: '⋯⋯'; }
    60%, 100% { content: '⋯⋯⋯'; }
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-toggle {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 12px;
        padding: 10px;
        gap: 5px;
    }
    
    .day-cell {
        min-height: 60px;
        padding: 5px;
    }
    
    .job-item {
        font-size: 10px;
        padding: 3px 5px;
    }
    
    .week-view {
        grid-template-columns: 60px repeat(7, 1fr);
        gap: 5px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }
    
    .user-info {
        flex-direction: column;
        width: 100%;
    }
    
    .calendar-header h2 {
        font-size: 18px;
    }
    
    .month-nav {
        gap: 10px;
    }
    
    .current-month {
        font-size: 14px;
        min-width: 100px;
    }
    
    .toggle-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .header {
        background: none;
        color: black;
        border-bottom: 2px solid #333;
    }
    
    .sidebar {
        display: none;
    }
    
    .admin-controls,
    .view-toggle,
    .switch-user {
        display: none;
    }
    
    .modal {
        display: none !important;
    }
}

/* ==================== USER MANAGEMENT STYLES ==================== */

.modal-large {
    max-width: 800px;
    width: 90%;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #495057;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.users-table-container {
    max-height: 400px;
    overflow-y: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background: #138496;
}

.btn-reset {
    background: #ffc107;
    color: #212529;
}

.btn-reset:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.readonly-input {
    background: #f8f9fa;
    cursor: not-allowed;
}

.user-menu-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.user-menu-btn:hover {
    background: #667eea;
    color: white;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 10px;
    z-index: 1000;
    margin-top: 10px;
}

.user-dropdown-content.show {
    display: block;
}

.dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item:first-child {
    border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 10px 10px;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-user {
    background: #6c757d;
    color: white;
}

/* Checkbox styling */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    color: #495057;
    font-size: 14px;
}

/* Style for searchable client inputs */
input[list] {
    position: relative;
}

input[list]::-webkit-calendar-picker-indicator {
    opacity: 0;
}

/* Custom dropdown arrow */
input[list]::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.import-holidays-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: 10px;
}


.export-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none !important;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Export Modal Styling */
.export-option {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.export-option h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.help-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
}

.url-container {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.calendar-url-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 12px;
    font-family: monospace;
    background: white;
}

.setup-instructions {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.setup-instructions summary {
    cursor: pointer;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

.setup-instructions ol {
    margin: 10px 0 0 20px;
    font-size: 13px;
    color: #495057;
}
