/* General styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f7f6;
}

header {
    background-color: #ffffff;
    color: #333;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav a:hover {
    color: #007bff;
}



#dashboard-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

#dashboard-nav .nav-link {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease;
}

#dashboard-nav .nav-link:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

#dashboard-nav-container {
    background-color: #f8f9fa;
    padding: 1.5rem 0.75rem;
    border-right: 2px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 60px; /* Adjust based on header height */
    left: 0;
    height: calc(100vh - 60px);
    width: 200px; /* Made thinner */
    z-index: 999;
}

#dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#dashboard-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease;
}

#dashboard-nav .nav-link:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

#dashboard-nav .nav-link.active {
    background-color: #007bff;
    color: white;
}

#dashboard-nav-container h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

#dashboard-nav-container a {
    background-color: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

#dashboard-nav-container a:hover {
    background-color: #c82333;
    color: white;
}

#dashboard-logout-link {
    background-color: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

#dashboard-logout-link:hover {
    background-color: #c82333;
    color: white;
}



.calendar-container {
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 2rem auto;
    overflow-y: auto;
}

body.dashboard-view {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: 60px 1fr;
    grid-template-areas:
        "header header"
        "sidebar main";
    height: 100vh;
}

body.dashboard-view header {
    grid-area: header;
}

body.dashboard-view #dashboard-nav-container {
    grid-area: sidebar;
    position: static; /* Remove sticky/fixed positioning */
    height: 100%;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 1rem;
}

body.dashboard-view main {
    grid-area: main;
    overflow-y: auto;
    padding: 2rem;
}

body.login-view main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 60px); /* Full height minus header */
}

body.login-view footer {
    display: none;
}

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

.day-status-select, .time-slots-grid {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.time-slot-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

#login-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    text-align: center;
}

#login-form h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

#login-form label {
    display: block;
    text-align: left;
    margin-bottom: .5rem;
    font-weight: 500;
}

#login-form input {
    width: 100%;
    padding: .75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
}

#login-form button {
    width: 100%;
    padding: .75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#login-form button:hover {
    background-color: #0056b3;
}

#demo-credentials {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

#demo-credentials h4 {
    margin-bottom: 1rem;
}

#demo-credentials p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
}


footer {
    background-color: #ffffff;
    color: #555;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

.calendar-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow-y: auto;
    position: relative;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.calendar-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.calendar-header button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-header button:hover {
    background-color: #0056b3;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    justify-content: center;
    margin: 0 auto;
}

.calendar-day {
    text-align: center;
    padding: 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    margin: 2px;
}

.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.current-day {
    background-color: #e0e0e0;
    border: 3px solid #007bff;
    font-weight: bold;
}

.day-name {
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.5rem;
    text-align: center;
    background-color: #f0f0f0;
    border-radius: 4px;
}

/* Weekend highlighting - yellow */
.calendar-day.weekend {
    background-color: #fff3cd;
    border-color: #ffc107;
}

/* Available days with tutor - blue */
.calendar-day.available {
    background-color: #cce5ff;
    border-color: #007bff;
    cursor: pointer;
}

/* Busy days (tutor available but busy) - green */
.calendar-day.busy {
    background-color: #d4edda;
    border-color: #28a745;
    cursor: pointer;
}

/* Holidays - red */
.calendar-day.unavailable {
    background-color: #f8d7da;
    border-color: #dc3545;
    cursor: not-allowed;
}

.calendar-day.sick {
    background-color: #fff3cd;
    border-color: #ffc107;
    cursor: not-allowed;
}

.calendar-day.vacation {
    background-color: #d4edda;
    border-color: #28a745;
    cursor: not-allowed;
}

/* Selected day */
.calendar-day.selected {
    background-color: #bbdefb;
    border-color: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Calendar Features Removed - using integrated calendar functionality */

/* New Calendar Styles for Enhanced Features */
.calendar-day.tutors-available {
    background-color: #e3f2fd;
    border-color: #2196f3;
    cursor: pointer;
}

.calendar-day.has-student-appointment {
    background-color: #fff3e0;
    border-color: #ff9800;
    cursor: pointer;
}

.calendar-day.working-day {
    background-color: #e8f5e8;
    border-color: #4caf50;
    cursor: pointer;
}

.calendar-day.working-day:hover {
    background-color: #c8e6c9;
}

/* Appointment and tutor count indicators */
.appointment-count,
.tutor-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: #ff5722;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    min-width: 16px;
    text-align: center;
}

.tutor-count {
    background-color: #2196f3;
}

.calendar-day {
    position: relative;
}

/* Enhanced status indicators */
.calendar-day.sick {
    background-color: #fff3cd;
    border-color: #ffc107;
    cursor: not-allowed;
}

.calendar-day.vacation {
    background-color: #d4edda;
    border-color: #28a745;
    cursor: not-allowed;
}

.calendar-day.unavailable {
    background-color: #f8d7da;
    border-color: #dc3545;
    cursor: not-allowed;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.time-slot {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.time-slot:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.time-slot.selected {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #dashboard-nav-container {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 2px solid #e9ecef;
    }

    .dashboard-content-area {
        padding-left: 0; /* Reset padding */
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }

    .calendar-day {
        width: auto;
        height: auto;
        font-size: 0.9rem;
    }
}

.booking-form {
    margin-top: 1rem;
}

.booking-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.booking-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 1rem;
}

.booking-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.primary-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.primary-button:hover {
    background-color: #0056b3;
}

/* Tutor Availability Form Styles */
.availability-form {
    margin-top: 1rem;
}

.availability-form .time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.time-slot-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.time-slot-label:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.availability-slot {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.time-slot-label .time-slot {
    flex: 1;
    border: none;
    background: none;
    padding: 0;
    font-weight: 500;
    cursor: pointer;
}

.time-slot-label:has(.availability-slot:checked) {
    background-color: #d4edda;
    border-color: #28a745;
}

.availability-status {
    margin: 1.5rem 0;
}

.availability-status label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.day-status-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
}

.day-status-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Admin Holiday Form Styles */
.holiday-form {
    margin-top: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-group textarea {
    min-height: 60px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.secondary-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.secondary-button:hover {
    background-color: #545b62;
}

.holiday-button {
    background-color: #dc3545;
}

.holiday-button:hover {
    background-color: #c82333;
}

.remove-button {
    background-color: #6c757d;
}

.remove-button:hover {
    background-color: #545b62;
}

/* Tutor Appointments and Working Hours Styles */
.appointment-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.appointment-filters select,
.appointment-filters input {
    padding: 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

.pagination-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

#page-info,
#all-page-info {
    font-weight: 500;
    color: #495057;
    min-width: 100px;
    text-align: center;
}

.working-hours-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.current-schedule,
.schedule-editor {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.current-schedule h3,
.schedule-editor h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #495057;
}

.schedule-grid {
    display: grid;
    gap: 0.5rem;
}

.schedule-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.schedule-day.working {
    border-left: 4px solid #28a745;
}

.schedule-day.not-working {
    border-left: 4px solid #dc3545;
    opacity: 0.7;
}

.day-name {
    font-weight: 500;
    color: #495057;
}

.day-hours {
    color: #6c757d;
    font-size: 0.9rem;
}

.day-schedule {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.day-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

.day-checkbox input[type="checkbox"] {
    margin: 0;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-inputs input[type="time"] {
    padding: 0.25rem;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 0.9rem;
}

.time-inputs span {
    color: #6c757d;
    font-size: 0.9rem;
}

.save-schedule-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.2s;
}

.save-schedule-btn:hover {
    background-color: #218838;
}

/* Calendar working days highlighting */
.calendar-day.working-day {
    background-color: #d4edda;
    border: 2px solid #28a745;
}

.calendar-day.working-day:hover {
    background-color: #c3e6cb;
}

.calendar-day.has-appointment {
    position: relative;
}

.calendar-day.has-appointment::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background-color: #007bff;
    border-radius: 50%;
}

.appointment-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Modal Styles Removed - using integrated calendar functionality */

/* Admin Tutor Management Styles */
.tutor-management-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.tutor-list,
.tutor-details {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tutor-filters {
    margin-bottom: 1.5rem;
}

.tutor-filters select {
    padding: 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 200px;
}

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

.tutor-card {
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tutor-card h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.tutor-card p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.view-tutor-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.view-tutor-btn:hover {
    background-color: #0056b3;
}

.tutor-info {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.tutor-info h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.tutor-info p {
    margin: 0.5rem 0;
    color: #6c757d;
}

.approval-section,
.vacation-approval-section {
    margin-bottom: 2rem;
}

.approval-section h4,
.vacation-approval-section h4 {
    margin: 0 0 1rem 0;
    color: #495057;
}

.working-hours-request,
.vacation-requests {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.working-hours-request ul,
.vacation-requests ul {
    margin: 0;
    padding-left: 1.5rem;
}

.working-hours-request li,
.vacation-requests li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.approval-actions,
.vacation-actions {
    display: flex;
    gap: 1rem;
}

.approve-btn,
.reject-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.approve-btn {
    background-color: #28a745;
    color: white;
}

.approve-btn:hover {
    background-color: #218838;
}

.reject-btn {
    background-color: #dc3545;
    color: white;
}

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

.back-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: #545b62;
}

/* Admin User Management Styles */
.user-management-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.user-filters select,
.user-filters input {
    padding: 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.user-card {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-card h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.user-card p {
    margin: 0.25rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.edit-user-btn,
.toggle-user-status-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

.edit-user-btn {
    background-color: #007bff;
    color: white;
}

.edit-user-btn:hover {
    background-color: #0056b3;
}

.toggle-user-status-btn {
    background-color: #ffc107;
    color: #212529;
}

.toggle-user-status-btn:hover {
    background-color: #e0a800;
}

.toggle-user-status-btn.suspend {
    background-color: #dc3545;
    color: white;
}

.toggle-user-status-btn.suspend:hover {
    background-color: #c82333;
}

/* Admin Schedule Rules Styles */
.schedule-rules-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rule-types {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rule-configuration,
.holiday-management {
    flex: 1;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.config-form label {
    font-weight: 500;
    color: #495057;
}

.config-form input,
.config-form select {
    padding: 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
}

.config-form button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.config-form button:hover {
    background-color: #218838;
}

.calendar-integration {
    margin-bottom: 1rem;
}

.calendar-integration h4 {
    margin: 0 0 1rem 0;
    color: #495057;
}

.holiday-list {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    max-height: 300px;
    overflow-y: auto;
}

.holiday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.holiday-item:last-child {
    border-bottom: none;
}

.holiday-item strong {
    color: #495057;
}

.holiday-item span {
    color: #6c757d;
    font-size: 0.9rem;
}

.remove-holiday-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}

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