﻿body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    direction: rtl;
}

/* Hero Section with Slider */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.slide-content {
    position: absolute;
    bottom: 80px;
    right: 40px;
    color: white;
    text-align: right;
    z-index: 2;
}

    .slide-content h2 {
        font-size: 36px;
        margin: 0 0 10px 0;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
        animation: slideInRight 1s ease;
    }

    .slide-content p {
        font-size: 18px;
        color: #d4951e;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
        animation: slideInRight 1.2s ease;
    }

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

    .nav-btn:hover {
        background: rgba(212, 149, 30, 0.8);
        border-color: #d4951e;
        transform: scale(1.1);
    }

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .indicator.active {
        background: #d4951e;
        width: 30px;
        border-radius: 6px;
    }

/* Logo Overlay */
.logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 4;
    background: rgba(0,0,0,0.6);
    padding: 30px 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 149, 30, 0.5);
    animation: fadeInScale 1s ease;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: 3px solid #d4951e;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.salon-name {
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-family: 'Cairo', sans-serif;
}

.salon-tagline {
    color: #d4951e;
    font-size: 18px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .logo-overlay {
        padding: 20px 30px;
    }

    .salon-name {
        font-size: 28px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 350px;
    }

    .slide-content {
        bottom: 60px;
        right: 20px;
    }

        .slide-content h2 {
            font-size: 24px;
        }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .logo-overlay {
        width: 90%;
        padding: 20px;
    }

    .salon-name {
        font-size: 24px;
    }
}

/* Quick Booking Section */
.quick-booking {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.welcome-title {
    color: #333;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.welcome-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Booking Steps */
.booking-step {
    margin-bottom: 30px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4951e, #f5c842);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.step-title {
    color: #333;
    font-size: 20px;
    margin: 0;
    flex: 1;
}

/* Barbers Container */
.barbers-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.barber-card {
    min-width: 100px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .barber-card:hover {
        border-color: #d4951e;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(212, 149, 30, 0.2);
    }

    .barber-card.selected {
        border-color: #d4951e;
        background: linear-gradient(135deg, rgba(212, 149, 30, 0.1), rgba(245, 200, 66, 0.1));
    }

.barber-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4951e, #f5c842);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 24px;
}

.barber-name {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Services Container */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .service-item:hover {
        border-color: #d4951e;
        background: rgba(212, 149, 30, 0.05);
    }

    .service-item.selected {
        border-color: #d4951e;
        background: linear-gradient(135deg, rgba(212, 149, 30, 0.1), rgba(245, 200, 66, 0.1));
    }

.service-info {
    flex: 1;
}

.service-name {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.service-details {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-price {
    color: #d4951e;
    font-weight: bold;
}

.service-select {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d4951e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-item.selected .service-select {
    background: #4caf50;
    transform: rotate(180deg);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #d4951e, #f5c842);
    color: white;
}

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 149, 30, 0.3);
    }

    .btn-primary:disabled {
        background: #ccc;
        cursor: not-allowed;
        opacity: 0.6;
    }

.btn-secondary {
    background: white;
    color: #d4951e;
    border: 2px solid #d4951e;
}

    .btn-secondary:hover {
        background: rgba(212, 149, 30, 0.1);
    }

/* Barber Status */
.barber-status {
    font-size: 11px;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

    .barber-status.available {
        color: #4caf50;
        background: rgba(76, 175, 80, 0.1);
    }

    .barber-status.busy {
        color: #ff9800;
        background: rgba(255, 152, 0, 0.1);
    }

/* Service Description */
.service-description {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Error/Empty Messages */
.error-message, .empty-message {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}

.error-message {
    color: #f44336;
}

/* Badge for appointments count */
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

#viewAppointmentsBtn {
    position: relative;
}

.contact-section {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

    .contact-item i {
        color: #d4951e;
        font-size: 20px;
    }

/* Loading */
.loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

    .loading i {
        font-size: 24px;
        color: #d4951e;
        margin-bottom: 10px;
        display: block;
    }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    padding: 20px;
}

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
    }

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .modal-close:hover {
        background: #e0e0e0;
    }

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Appointment Card */
.appointment-card {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
}

.appointment-date {
    color: #d4951e;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.appointment-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.appointment-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .appointment-detail i {
        color: #d4951e;
        width: 20px;
    }

.cancel-btn {
    width: 100%;
    padding: 12px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .cancel-btn:hover {
        background: #cc0000;
    }

    .cancel-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* Responsive */
@media (max-width: 480px) {
    .salon-name {
        font-size: 24px;
    }

    .welcome-title {
        font-size: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .contact-section {
        flex-direction: column;
        gap: 15px;
    }
}
