/* assets/css/style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f5f6fb;
    color: #111827;
    padding-top: 60px;   /* space for sticky header */
    padding-bottom: 60px;/* space for sticky footer */
}

/* Sticky header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, #ff6f61, #ffb347);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    color: #fff;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.brand-title {
    font-weight: 700;
    font-size: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-select {
    border-radius: 16px;
    border: none;
    padding: 4px 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-select:hover {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Main area */
.app-main {
    padding: 12px;
}

/* Banner slider */
.banner-slider {
    overflow-x: auto;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.banner-slide {
    min-width: 85%;
    border-radius: 12px;
    overflow: hidden;
    background: #ddd;
    scroll-snap-align: start;
    position: relative;
}

.banner-slide img {
    width: 100%;
    display: block;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.btn.primary {
    background: #3b82f6;
    color: #fff;
    transition: all 0.2s ease;
}

.btn.primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn.secondary {
    background: #22c55e;
    color: #fff;
    transition: all 0.2s ease;
}

.btn.secondary:hover {
    background: #16a34a;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.btn-outline {
    background: #fff;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #eff6ff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn.small {
    padding: 6px 10px;
    font-size: 12px;
}

.btn:active {
    transform: scale(0.97);
    box-shadow: 0 0 0 rgba(0,0,0,0.1);
    opacity: 0.9;
}

/* Salon list */
.salon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.salon-card {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.salon-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

.salon-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    position: relative;
}

.salon-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9;
}

.salon-info {
    flex: 1;
}

.salon-name {
    font-size: 15px;
    font-weight: 600;
}

.salon-location {
    font-size: 12px;
    color: #6b7280;
}

.salon-waiting {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
}

.badge-instant {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
}

/* Card actions */
.salon-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.rate-list {
    margin-top: 8px;
    font-size: 13px;
    display: none;
}

/* Empty text */
.empty-text {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    padding: 20px 0;
}

/* Sticky footer */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.nav-item {
    text-decoration: none;
    font-size: 12px;
    color: #6b7280;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.nav-item:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.nav-item.active {
    color: #3b82f6;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
}
/* Extra badges */
.badge-free {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    background: #22c55e;
    color: #ffffff;
    font-size: 11px;
    margin-left: 4px;
}

.badge-wait {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-size: 11px;
}

/* Search bar wrapper */
.search-bar {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    padding: 8px 12px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #3b82f6;
    color: #fff;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #2563eb;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.search-btn:active {
    transform: scale(0.98);
}

/* Global form inputs */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    transition: all 0.2s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Notification Popup */
.notification-popup {
    position: fixed;
    top: 70px;
    right: 12px;
    width: 320px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(350px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-body {
    padding: 12px 16px;
    font-size: 13px;
}

.notification-body p {
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-footer {
    padding: 8px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-footer .btn {
    width: 100%;
    background: #fff;
    color: #667eea;
}

/* New improved footer with icons */
.footer-nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 12px;
    color: #6b7280;
    padding: 4px 8px;
}

.nav-item span:first-child {
    font-size: 20px;
}

.nav-item.active {
    color: #3b82f6;
    font-weight: 600;
}

/* Sponsored badge */
.salon-card.sponsored {
    border: 2px solid #fbbf24;
    position: relative;
}

.sponsor-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    z-index: 10;
}

/* Search section improvements */
.search-section {
    margin-bottom: 12px;
}

.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 13px;
}

.search-btn {
    padding: 10px 14px;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #2563eb;
}

/* Two column services layout in booking */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.service-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.service-card.selected {
    background: #dbeafe;
    border-color: #3b82f6;
}

.service-card input[type="checkbox"] {
    margin: 0;
    margin-right: 8px;
}

.service-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 6px 0;
}

.service-duration {
    font-size: 11px;
    color: #6b7280;
}

.service-price {
    font-size: 14px;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 4px;
}

/* Waiting notifications styles */
#btnWaiting {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

#btnWaiting:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#btnWaiting.waiting-active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

/* Instant availability banner */
.instant-availability-banner {
    position: fixed;
    bottom: 80px;
    left: 12px;
    right: 12px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 16px;
    padding: 16px;
    color: white;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.banner-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-emoji {
    font-size: 32px;
    animation: bounce 0.6s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.banner-middle {
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.banner-subtitle {
    font-size: 12px;
    opacity: 0.95;
    margin-bottom: 4px;
}

.banner-location {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.banner-time {
    font-size: 11px;
    opacity: 0.85;
}

.banner-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-book-now {
    background: white;
    color: #22c55e;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-book-now:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-close-banner {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .banner-content {
        flex-wrap: wrap;
        gap: 8px;
    }

    .banner-emoji {
        font-size: 24px;
    }

    .banner-title {
        font-size: 14px;
    }

    .btn-book-now {
        padding: 6px 10px;
        font-size: 11px;
    }

    .instant-availability-banner {
        bottom: 70px;
    }
}

