/* My Bookings Button (Top Left) */
.btn-my-bookings {
    position: absolute;
    left: 160px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.2);
}

.btn-my-bookings:hover {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
    transform: translateY(-50%) scale(1.05);
}

/* Mobile: Move to top */
@media (max-width: 768px) {
    .btn-my-bookings {
        position: static;
        transform: none;
        width: 100%;
        margin: 10px 0;
        padding: 12px;
    }
    
    .btn-my-bookings:hover {
        transform: scale(1.02);
    }
}

/* Customer Dashboard Links */
#customer-dashboard-links {
    display: none;
    gap: 15px;
    align-items: center;
}

#customer-dashboard-links .nav-link {
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#customer-dashboard-links .nav-link:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #customer-dashboard-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    #customer-dashboard-links .nav-link {
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    #customer-dashboard-links .nav-link:last-child {
        border-bottom: none;
    }
}

/* Status Badge Styles */
.status.paid {
    background: #22c55e;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status.pending {
    background: #f59e0b;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status.completed {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.booking-item.active {
    border-left: 4px solid #3b82f6;
}

.booking-item.completed {
    border-left: 4px solid #10b981;
}

/* Rating System */
.rating-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.rating-stars {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.star {
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #cbd5e1;
}

.star:hover,
.star.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.rating-comment {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    margin-top: 10px;
}

.rating-submit {
    margin-top: 10px;
    background: #047857;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rating-submit:hover {
    background: #065f46;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.rating-display .stars {
    color: #fbbf24;
    font-size: 18px;
}

.rating-display .comment {
    color: #64748b;
    font-size: 14px;
    font-style: italic;
    margin-top: 5px;
}

/* Enhanced Booking Cards */
.booking-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.booking-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.booking-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.booking-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.booking-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.booking-detail-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
}

.booking-detail-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

/* ============================================
   NEW CUSTOMER NAVIGATION STYLES
   ============================================ */

/* Customer Navigation Actions */
#customer-nav-actions {
    display: none;
    gap: 0.5rem;
    align-items: center;
}

#customer-nav-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#customer-nav-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#customer-nav-actions .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Customer Menu Dropdown */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.customer-dropdown-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-dropdown-item {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: #1f2937;
}

.menu-dropdown-item:hover {
    background: #f3f4f6;
}

.menu-dropdown-item span {
    font-size: 1.25rem;
}

.menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.menu-dropdown-item.logout {
    color: #ef4444;
}

.menu-dropdown-item.logout:hover {
    background: #fef2f2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Hide hamburger button on mobile - we use Menu button instead */
    .hamburger {
        display: none !important;
    }
    
    /* On mobile, hide all buttons except menu */
    #guest-nav-actions #login-btn,
    #customer-nav-actions #my-bookings-btn {
        display: none !important;
    }
    
    /* Keep menu button visible and force display */
    #guest-nav-actions,
    #customer-nav-actions {
        display: flex !important;
    }

    /* ...but never resurrect the group JS has hidden, or the guest and
       logged-in menus show at the same time (two ☰ Menu buttons). */
    #guest-nav-actions[style*="display: none"],
    #customer-nav-actions[style*="display: none"] {
        display: none !important;
    }
    
    /* Make nav-menu always visible on mobile (not slide-in) */
    .nav-menu {
        position: static !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        width: auto !important;
        height: auto !important;
    }
    
    #customer-nav-actions .btn,
    #guest-nav-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .customer-dropdown-menu {
        right: 10px;
        left: 10px;
        min-width: auto;
        top: 60px;
    }
}
