/* Main Stylesheet */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-indicator {
    position: relative;
    color: #9ca3af;
}

.step-indicator.active {
    color: #2563eb;
}

.step-indicator.completed {
    color: #10b981;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6b7280;
}

.step-indicator.active .step-circle {
    background-color: #2563eb;
    color: white;
}

.step-indicator.completed .step-circle {
    background-color: #10b981;
    color: white;
}

/*original code css */

/* Calendar Styles 
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
}*/

/* Fully Responsive Calendar */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
    overflow-x: auto; /* horizontal scroll if needed */
}

@media (max-width: 480px) {
    #calendar {
        grid-template-columns: repeat(7, minmax(0, 1fr)); /* shrink evenly */
        gap: 4px;
        padding: 8px;
    }

    .calendar-day {
        font-size: 10px; /* smaller text */
        padding: 4px;    /* optional: smaller padding */
    }
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    padding: 8px;
    color: #374151;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
}

.calendar-day:hover:not(.disabled):not(.fully-booked) {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.calendar-day.selected {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.calendar-day.disabled {
    background-color: #f3f4f6;
    color: #d1d5db;
    cursor: not-allowed;
}

.calendar-day.fully-booked {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
    cursor: not-allowed;
}

.calendar-day.today {
    border-color: #10b981;
}

/* Modal */
.modal {
    transition: opacity 0.3s;
}

.modal.show {
    display: flex !important;
}

/* Admin Styles */
.sidebar {
    width: 260px;
    background-color: #1f2937;
    color: white;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar-logo {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #374151;
}

.sidebar-nav {
    padding: 16px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: #374151;
    color: white;
}

.admin-content {
    margin-left: 260px;
    padding: 24px;
}

/* Card Styles */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card.pending {
    border-left: 4px solid #f59e0b;
}

.stat-card.approved {
    border-left: 4px solid #3b82f6;
}

.stat-card.completed {
    border-left: 4px solid #10b981;
}

.stat-card.cancelled {
    border-left: 4px solid #ef4444;
}

/* Table Styles */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table th {
    background-color: #f3f4f6;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
}

.admin-table td {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Dark Mode */
body.dark-mode {
    background-color: #111827;
    color: #f9fafb;
}

body.dark-mode .bg-white {
    background-color: #1f2937;
    color: #f9fafb;
}

body.dark-mode .text-gray-800 {
    color: #f9fafb;
}

body.dark-mode .text-gray-600 {
    color: #d1d5db;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #374151;
    color: #f9fafb;
    border-color: #4b5563;
}

body.dark-mode .stat-card {
    background-color: #1f2937;
}

body.dark-mode .admin-table {
    background-color: #1f2937;
}

body.dark-mode .admin-table th {
    background-color: #374151;
    color: #f9fafb;
}

body.dark-mode .admin-table td {
    border-color: #4b5563;
}

/*background css*/

.page-background {
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;        /* makes it full screen */
    background-position: center;   /* center the image */
    background-repeat: no-repeat;  /* no repeating */
    background-attachment: fixed;  /* optional: makes it parallax style */
}

.page-background::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85); /* white transparent overlay */
    z-index: -1;
}