/* ========== Dashboard Layout ========== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
    background: #f8f9fa;
}

/* ========== Sidebar (Desktop) ========== */

.dashboard-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    background: none;
    border: none;
    color: white;
    padding: 15px 25px;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
    font-size: 16px;
    font-family: 'Vazir', sans-serif;
}

.sidebar-item:hover {
    background: #34495e;
}

.sidebar-item.active {
    background: #34495e;
    border-right-color: #FFD700;
    color: #FFD700;
}

/* ========== Dashboard Content ========== */

.dashboard-main {
    flex: 1;
    padding: 2rem;
    background: #f8f9fa;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

/* ========== Profile ========== */

.profile-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-left: 1.5rem;
}

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

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-right: 4px solid #FFD700;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: #2c3e50;
}

/* ========== Forms ========== */

.booking-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 650px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    margin-bottom: 0.4rem;
    display: block;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
}

/* ========== Buttons ========== */

.btn-primary {
    background: #FFD700;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    color: #2c3e50;
    font-weight: bold;
}

.btn-primary:hover {
    background: #e5c100;
}

.btn-secondary {
    background: #ccc;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #bbb;
}

/* Logout Button */

.btn-logout {
    background: transparent;
    border: 2px solid #FFD700;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    color: #FFD700;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #FFD700;
    color: #2c3e50;
}

/* ========== My Bookings ========== */

.no-bookings {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 10px;
    color: #666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.booking-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-right: 4px solid #FFD700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.booking-type {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

.booking-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ========== Photos ========== */

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

.no-photos {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
}

/* ========== Mobile Sidebar (Slide In) ========== */

.mobile-sidebar {
    display: none;
}

@media (max-width: 768px) {

    .dashboard-container {
        padding-top: 60px;
        flex-direction: column;
    }

    .dashboard-sidebar {
        display: none;
    }

    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 60px;
        right: 0;
        width: 240px;
        height: calc(100vh - 60px);
        background: #2c3e50;
        padding-top: 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .mobile-sidebar.active {
        transform: translateX(0);
    }

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

/* ========== Mobile Menu (Hamburger) ========== */

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    padding: 80px 20px 20px;
    transition: right .4s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        display: none;
    }
}

/* ========== Datepicker Modal Styles ========== */

.date-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.45);
    padding: 20px;
}

.date-modal[aria-hidden="false"],
.date-modal.active {
    display: flex;
}

.date-modal-content {
    width: 420px;
    max-width: 95%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    direction: rtl;
}

.date-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(90deg, #f8f9fa, #ffffff);
}

.month-year {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}

.icon-btn {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    color: #2c3e50;
}

.date-modal-body {
    padding: 12px 16px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
    color: #777;
    margin-bottom: 8px;
    font-weight: 700;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.day-cell {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    transition: all .15s ease;
}

.day-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.day-cell.empty {
    background: transparent;
    cursor: default;
    box-shadow: none;
    font-weight: 400;
    color: transparent;
}

.day-cell.selected {
    background: #FFD700;
    color: #2c3e50;
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.18);
}

.date-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

/* ========== Responsive tweaks ========== */

@media (max-width: 480px) {
    .date-modal-content {
        width: 100%;
        margin: 0 6px;
    }

    .day-cell {
        min-height: 38px;
        font-size: 14px;
    }

    .month-year {
        font-size: 14px;
    }
}

/* ========== Persian date hint ========== */

.date-hint {
    font-size: 13px;
    color: #777;
}