/**
 * Main CSS for BarberHub
 * Imports the base styles from root directory
 */

@import url('../../style.css'); 

/* Override any specific styles for assets directory access */

:root {
    --primary-color: #ff7b54;
    --secondary-color: #1a1a2e;
    --dark-color: #121212;
    --darker-color: #080808;
    --light-color: #f2f2f2;
    --gray-color: #666;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --info-color: #2196F3;
    --warning-color: #FF9800;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 10px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Dynamic Background */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom right, var(--darker-color), var(--secondary-color));
    opacity: 0.85;
    overflow: hidden;
}

.dynamic-background::before,
.dynamic-background::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(var(--primary-color), transparent 80%);
    opacity: 0.05;
    animation: floating 30s infinite linear;
    filter: blur(100px);
    transform: translate(-50%, -50%);
}

.dynamic-background::after {
    width: 40%;
    height: 40%;
    opacity: 0.03;
    animation-direction: reverse;
    animation-duration: 40s;
}

@keyframes floating {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(100px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(100px);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 15px;
    min-height: calc(100vh - 200px);
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .container {
        width: 98%;
        padding: 0px;
        margin: 1rem auto;
    }
    
    .form-container {
        padding: 0.8rem;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .customer-info-section,
    .modern-booking-container {
        padding: 0.8rem;
        border-radius: 12px;
    }
    
    .form-control {
        padding: 0.8rem;
        font-size: 1rem;
        height: 48px; /* Ensure good touch target */
    }
    
    textarea.form-control {
        height: auto;
        min-height: 100px;
    }
    
    .btn {
        height: 48px;
        padding: 0 1rem;
        font-size: 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
    
    .booking-header {
        padding: 1rem;
    }
    
    .booking-flex-container {
        gap: 0;
    }
}

@media (max-width: 480px) {
    html, body {
        font-size: 15px; /* Slightly reduce base font size */
    }
    
    .container {
        width: 100%;
        padding: 8px;
    }
    
    .form-container {
        border-radius: 10px;
        padding: 0.6rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .time-slot {
        padding: 0.6rem 0.2rem;
        height: 36px; /* Larger touch target */
    }
    
    .date-pill {
        padding: 0.5rem 0.8rem;
        height: 36px;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(15, 15, 25, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.highlight {
    color: var(--primary-color);
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links ul li {
    margin-left: 1.5rem;
}

.nav-links ul li a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links ul li a:hover, 
.nav-links ul li a.active {
    color: var(--primary-color);
}

.nav-links ul li a:hover::after,
.nav-links ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: rgba(15, 15, 25, 0.9);
    padding: 2rem 5%;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    margin-right: 1rem;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    margin-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--darker-color);
    color: var(--light-color);
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

/* Forms */
.form-container {
    background: rgba(15, 15, 25, 0.7);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 123, 84, 0.25);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #e26a48;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 123, 84, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.2);
    color: var(--info-color);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.alert-warning {
    background-color: rgba(255, 152, 0, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* Cards */
.card {
    background-color: rgba(20, 20, 40, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-title {
    margin: 0;
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

/* PWA styles */
#pwa-install-btn {
    display: none;
    background-color: #2a2438;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s ease;
}

#pwa-install-btn:hover {
    background-color: #3a3448;
}

#pwa-install-btn i {
    margin-right: 5px;
}

@media (display-mode: standalone) {
    #pwa-install-btn {
        display: none !important;
    }
}

.pwa-standalone .web-only {
    display: none !important;
}

/* Reset cache button styles */
#reset-cache-btn {
    background-color: transparent;
    color: #666;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#reset-cache-btn:hover {
    color: #2a2438;
    background-color: rgba(42, 36, 56, 0.1);
}

#reset-cache-btn i {
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        margin: 1rem auto;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background-color: var(--secondary-color);
        padding: 2rem;
        z-index: 1000;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
    }
    
    .nav-links ul li {
        margin: 1rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .footer-section {
        min-width: 100%;
        margin-right: 0;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
}

/* Print styles */
@media print {
    .navbar, 
    .footer,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .dynamic-background {
        display: none !important;
    }
}

/* Rest of the file remains unchanged */

/* ... existing code ... */ 