:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #fca311;
    --light: #e6e6e6;
    --dark: #0f0f1a;
    --text: #333;
    --text-light: #f8f8f8;
    --glass: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
            overflow-x: hidden;
            width: 100%;
            position: relative;
        }


body {
            font-family: 'Montserrat', sans-serif;
            color: var(--text);
            background-color: #f9f9f9;
            line-height: 1.6;
            opacity: 0;
            animation: fadeIn 0.5s ease forwards;
        }



@keyframes fadeIn {
    to { opacity: 1; }
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    width: 100% !important;
     padding-left: 15px;
     padding-right: 15px;
}

/* Header */
.glass-nav {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(26, 26, 46, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}



/* Menu Mobile */
.mobile-menu {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.admin-link {
    text-decoration: none;
    background: var(--accent);
    color: var(--dark) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.3);
}

.admin-link:after {
    display: none;
}

/* Responsive Menu */
@media (max-width: 992px) {
    .mobile-menu {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary);
        padding: 6rem 2rem 2rem;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 1rem 0;
        margin-left: 0;
        opacity: 0;
        transform: translateX(20px);
        transition: var(--transition);
    }
    
    nav.active ul li {
        opacity: 1;
        transform: translateX(0);
    }
    
    nav.active ul li:nth-child(1) { transition-delay: 0.1s; }
    nav.active ul li:nth-child(2) { transition-delay: 0.2s; }
    nav.active ul li:nth-child(3) { transition-delay: 0.3s; }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../assets/images/barber-shop.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(22, 33, 62, 0.8), rgba(26, 26, 46, 0.7));
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.3);
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(252, 163, 17, 0.4);
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(252, 163, 17, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0); }
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.about {
    padding: 6rem 0;
    background: #fff;
}

/* Barbers Grid */
.barbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}


.specialty {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.social-links-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem; /* Dimensione dell'icona */
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ddd;
}
/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-light);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stars {
    color: var(--accent);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-col p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-col i {
    margin-right: 10px;
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Booking Page Styles */
.booking-section {
    padding: 8rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.booking-header {
    background: var(--primary);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.booking-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.booking-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.2);
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    font-size: 1rem;
}

.submit-btn:hover {
    background: #e59400;
}

.booking-success {
    text-align: center;
    padding: 3rem;
}

.booking-success i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

.booking-success h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Admin Dashboard Styles */
.dashboard {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
    padding-top: 80px;
}

.sidebar {
    width: 250px;
    background: var(--primary);
    color: #fff;
    padding: 2rem 0;
    position: fixed;
    height: 100%;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 1.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1rem;
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
}

.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 250px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.8rem;
    color: var(--primary);
}

.bookings-table {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bookings-table table {
    width: 100%;
    border-collapse: collapse;
}

.bookings-table th,
.bookings-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.bookings-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.bookings-table tr:hover {
    background: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-confirmed {
    background: #e3f7e8;
    color: #28a745;
}

.status-pending {
    background: #fff3cd;
    color: #d39e00;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-edit {
    background: #17a2b8;
    color: #fff;
}

.btn-delete {
    background: #dc3545;
    color: #fff;
    margin-left: 0.5rem;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive */
/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

@media (max-width: 1200px) {
    .dashboard {
        flex-direction: column;
        padding-top: 0;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    /* Menu mobile */
    .mobile-menu {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--primary);
        padding: 5rem 1.5rem 2rem;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0.8rem 0;
        margin-left: 0;
        opacity: 0;
        transform: translateX(20px);
        transition: var(--transition);
    }
    
    nav.active ul li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Animazione items menu */
    nav.active ul li:nth-child(1) { transition-delay: 0.1s; }
    nav.active ul li:nth-child(2) { transition-delay: 0.2s; }
    nav.active ul li:nth-child(3) { transition-delay: 0.3s; }
    
    /* Admin sidebar */
    .sidebar-nav a {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {

    

    .container {
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;}

    .hero {
       
        height: auto;
        min-height: 100vh;
        padding: 7rem 0 3rem;
    }
    
    .hero-title {
       
        font-size: 2.4rem;
        margin-top: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .barber-card {
        margin-bottom: 1.5rem;
    }
    
    /* Form prenotazione */
    .booking-section {
        padding: 6rem 0 3rem;
    }
    
    .booking-container {
        border-radius: 0;
    }
    
    .booking-form {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-right: 0 !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-col {
        margin-bottom: 1rem;
    }
    .footer-col .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.footer-col .social-links a {
  font-size: 1.7rem;
  color: #2e2e5e;
  transition: color 0.2s;
}

.footer-col .social-links a:hover {
  color: #f44336;
}
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
    
    /* Dashboard */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-actions {
        margin-top: 1rem;
        width: 100%;
    }
    
    .dashboard-actions .btn {
        width: 100%;
    }
    
    .bookings-table {
        font-size: 0.85rem;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 0.7rem;
    }
    
    .action-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Menu mobile più grande */
    .mobile-menu {
        font-size: 1.8rem;
        padding: 0.5rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .booking-header h2 {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 0.8rem;
    }
    
    .submit-btn {
        padding: 0.8rem;
    }
}

/* Stili per gli elementi disabilitati */
select:disabled {
    opacity: 0.7;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Messaggi di errore */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Card prenotazione admin */
.admin-booking-card {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(26,26,46,0.10), 0 1.5px 6px rgba(26,26,46,0.08);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  border-left: 5px solid #2e2e5e;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.admin-booking-card:hover {
  box-shadow: 0 8px 32px rgba(26,26,46,0.16), 0 3px 12px rgba(26,26,46,0.12);
  transform: translateY(-2px);
}

.admin-booking-card .booking-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.admin-booking-card .booking-header i {
  color: #2e2e5e;
  font-size: 1.5rem;
  margin-right: 0.7rem;
}

.admin-booking-card .booking-actions {
  position: relative;
  top: auto;
  right: auto;
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.admin-booking-card .booking-actions button {
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.admin-booking-card .booking-actions button:hover {
  background: #b71c1c;
}

/* Media Queries per dispositivi diversi */
@media (min-width: 768px) {
  .admin-booking-card {
    padding: 1.5rem 1.2rem;
  }
  
  .admin-booking-card .booking-actions {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    margin-top: 0;
  }
  
  .admin-booking-card .booking-actions button {
    padding: 0.3rem 0.7rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .admin-booking-card {
    border-radius: 12px;
    padding: 1rem;
  }
  
  .admin-booking-card .booking-header i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
  }
  
  .admin-booking-card .booking-actions {
    gap: 0.3rem;
  }
  
  .admin-booking-card .booking-actions button {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
}
.admin-booking-card .booking-info {
  margin-bottom: 0.3rem;
  color: #222;
  font-size: 1.05rem;
}

.admin-booking-card .booking-label {
  color: #888;
  font-size: 0.92rem;
  margin-right: 0.3rem;
}




/* Stili per il modulo di login */
.hidden {
 display: none !important;
}



/* Stili per il contenuto protetto */






/* New card styles */
.card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h1, .card-header h2 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-body {
  padding: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background-color: #f4f7f9;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.filter-input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fcfcfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-input:focus {
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
  outline: none;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #1a1a2e;
  color: #fff;
}

.btn-primary:hover {
  background-color: #333;
}

.btn-primary:active {
  transform: translateY(1px);
}

/* NEW TABLE STYLES */
.booking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.9rem;
  table-layout: fixed; /* Ensures even column width */
}

.booking-table th,
.booking-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #e4e4e4;
  vertical-align: top;
  position: relative;
}

.booking-table th {
  background-color: #f4f7f9;
  color: #1a1a2e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booked-slot {
  background-color: #e8f5e9; /* Light green for booked slots */
  color: #2e7d32;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.booked-slot:hover {
  background-color: #dcedc8;
}

.empty-slot {
  background-color: #fafafa;
}

.booking-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.btn-action {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  transition: color 0.2s ease;
}

.btn-action:hover {
  color: #1a1a2e;
}

.btn-delete {
  color: #c62828;
}

.btn-delete:hover {
  color: #b71c1c;
}

.btn-edit {
    color: #0d47a1;
}

.btn-edit:hover {
    color: #003080;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    margin-right: 10px;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* New responsive styles */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .booking-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* Stili per il modale e form */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    background-color: var(--secondary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #dc3545;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #0f0f1a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
}

.btn-secondary:hover {
    background-color: #999;
    transform: translateY(-2px);
}

/* Stili per il messaggio di successo/errore */
.booking-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    animation: fadeInSlide 0.5s ease forwards, fadeOut 0.5s 4.5s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.booking-message.success {
    background-color: #28a745;
}

.booking-message.error {
    background-color: #dc3545;
}

/* MODIFICHE AL CSS ESISTENTE */

/* Rimuovi il vecchio stile del calendar-header */
.calendar-header {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-bottom: 15px;
    flex-direction: column; /* Cambia la direzione per mettere la navigazione sopra */
    width: 100%;
}

/* Aggiungi un contenitore per la navigazione */
.week-navigation-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modifica il calendario per occupare tutta la larghezza */
.calendar-container {
    overflow-x: auto;
    margin-top: 0; /* Rimuovi il margine superiore */
    width: 100%;
}

/* Assicurati che gli elementi del calendario occupino tutto lo spazio */
.week-days-header {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    min-width: 100%;
    background-color: #f4f7f9;
    border-bottom: 2px solid #ddd;
}

.week-grid {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr);
    min-width: 100%; /* Forza la larghezza minima */
}



/* Modale per giorni non disponibili - rinominato */
.unavailable-modal {
  display: none;
  position: fixed;
  z-index: 1001; /* Z-index più alto del modale prenotazioni */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.unavailable-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

/* Modale prenotazioni esistente */
.modal {
  display: none;
  position: fixed;
  z-index: 1000; /* Z-index più basso */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.close-btn {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #ff0000;
}



 html, body {
            overflow-x: hidden;
            width: 100%;
            position: relative;
 }
 body {
     font-family: 'Montserrat', sans-serif;
     color: var(--text);
     background-color: #f9f9f9;
     line-height: 1.6;
     opacity: 0;
     animation: fadeIn 0.5s ease forwards;
 }
        /* Modifiche specifiche per risolvere problemi di overflow */
        @media (max-width: 768px) {
            .container {
                width: 100% !important;
                padding-left: 15px;
                padding-right: 15px;
            }
            
            /* Assicurati che le immagini non superino la larghezza del viewport */
            img {
                max-width: 100%;
                height: auto;
            }
            
            /* Previeni overflow di elementi con posizione assoluta */
            .hero, .hero-overlay {
                width: 100vw;
                left: 0;
                right: 0;
            }
            
            /* Corregge eventuali problemi con il menu mobile */
            nav.active {
                width: 80%;
                max-width: 300px;
                right: 0;
            }
            
            /* Assicurati che le tabelle non causino overflow */
            table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
        }

        /* Stile per il messaggio di conferma */
        .fix-confirmation {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--accent);
            color: var(--dark);
            padding: 10px 15px;
            border-radius: 5px;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 10000;
            display: none;
        }

        /* Schermata di registrazione */
#register-container {
    max-width: 400px;
    margin: 120px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26,26,46,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.6s;
}

#register-container h2 {
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

#registerForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

#registerForm input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat', sans-serif;
}

#registerForm input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(252,163,17,0.15);
    outline: none;
}

#registerForm button[type="submit"] {
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(252,163,17,0.10);
}

#registerForm button[type="submit"]:hover {
    background: #e59400;
    transform: translateY(-2px);
}

#register-container p {
    margin-top: 1.2rem;
    text-align: center;
    color: #666;
    font-size: 1rem;
}

#register-container a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

#register-container a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    #register-container {
        margin: 100 px auto 0 auto;
        padding: 1.2rem 0.7rem;
        max-width: 98vw;
    }
    #registerForm input, #registerForm button[type="submit"] {
        font-size: 1rem;
        padding: 0.8rem;
    }
    .glass-nav .container {
       
        align-items: flex-start;
        padding: 1rem 0.5rem;
    }
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    nav ul li {
        margin: 0.5rem 0;
    }
}

@media (max-width: 500px) {
    #register-container {
        margin: 150px auto 0 auto;
        padding: 0.7rem 0.2rem;
    }
    #registerForm input, #registerForm button[type="submit"] {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
    .logo {
        font-size: 1.5rem;
    }
}
body.register-bg {
    background: #162447 !important;
}



#loginForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

#loginForm input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat', sans-serif;
}

#loginForm input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(252,163,17,0.15);
    outline: none;
}

#loginForm button[type="submit"] {
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(252,163,17,0.10);
}


#passwordResetForm input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat', sans-serif;
}

#passwordResetForm input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(252,163,17,0.15);
    outline: none;
}


#passwordResetForm button[type="submit"] {
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(252,163,17,0.10);
}


#loginForm button[type="submit"]:hover {
    background: #e59400;
    transform: translateY(-2px);
}

/* Modale Login specifica */
#loginModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(22,36,71,0.85);
    justify-content: center;
    align-items: center;
}
#loginModal.active {
    display: flex;
}
#loginModal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    max-width: 350px;
    margin: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#loginModal .modal-content h2 {
    margin-bottom: 1.2rem;
    color: #162447;
}
#loginModal .modal-content input {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
}
#loginModal .modal-content button {
    width: 100%;
    background: var(--accent, #fca311);
    color: #162447;
    border: none;
    border-radius: 8px;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
#loginModal .modal-content button:hover {
    background: #e59400;
}
#loginModal .close {
    position: absolute;
    top: 10px; right: 18px;
    font-size: 1.5rem;
    color: #162447;
    cursor: pointer;
}
.user-bookings-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(22,36,71,0.85);
    justify-content: center;
    align-items: center;
}
.user-bookings-modal.active {
    display: flex;
}
.user-bookings-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.user-bookings-modal .close {
    position: absolute;
    top: 10px; right: 18px;
    font-size: 1.5rem;
    color: #162447;
    cursor: pointer;
}
#userBookingsList {
    width: 100%;
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
#userBookingsList li {
    background: #f7f7f7;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    color: #222;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(22,36,71,0.05);
}

#editBookingModal.user-bookings-modal { z-index: 10000; }