:root {
    --primary-color: #50fa7b; /* Neon green */
    --secondary-color: #9333ea; /* Vibrant purple */
    --text-color: #e0e7ff; /* Soft off-white */
    --bg-color: rgba(255, 255, 255, 0.08); /* Glassmorphism background */
}

body {
    min-height: 100vh;
    font-family: 'Roboto', 'Montserrat', sans-serif; /* Modern fonts */
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f2027, #2c5364); /* Deep oceanic gradient */
    animation: gradientShift 25s ease infinite;
    color: var(--text-color);
    transition: background 0.5s ease, color 0.5s ease;
    line-height: 1.7;
}

@keyframes gradientShift {
    0% { background: linear-gradient(135deg, #0f2027, #2c5364); }
    50% { background: linear-gradient(135deg, #203a43, #3b6978); }
    100% { background: linear-gradient(135deg, #0f2027, #2c5364); }
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    animation: particlePulse 12s ease-in-out infinite;
}

@keyframes particlePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

.container {
    max-width: 1000px; /* Slightly wider for balance */
    margin-top: 80px;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 35px;
    backdrop-filter: blur(15px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(80, 250, 123, 0.4);
}

.section {
    display: none;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-header::after {
    content: '';
    width: 80px;
    height: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: absolute;
    bottom: -10px;
    left: 0;
    border-radius: 3px;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--text-color);
    padding: 14px;
    transition: all 0.4s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(80, 250, 123, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.form-label {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
}

.btn-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeIn 0.6s ease;
}

.btn-custom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(80, 250, 123, 0.5);
}

.btn-custom:disabled {
    background: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
}

.progress-text {
    color: var(--primary-color);
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 2rem;
    text-align: center;
    animation: neon-glow 1.8s ease-in-out infinite;
}

.value-message {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 10px;
    margin-bottom: 0;
    animation: neon-glow 1.8s ease-in-out infinite;
}

@keyframes neon-glow {
    0% { text-shadow: 0 0 12px rgba(80, 250, 123, 0.9), 0 0 24px rgba(147, 51, 234, 0.7); }
    50% { text-shadow: 0 0 18px rgba(80, 250, 123, 1), 0 0 36px rgba(147, 51, 234, 0.9); }
    100% { text-shadow: 0 0 12px rgba(80, 250, 123, 0.9), 0 0 24px rgba(147, 51, 234, 0.7); }
}

.valor-input {
    margin-bottom: 25px;
}

.date-occupied {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.date-sunday {
    border-color: var(--secondary-color);
    background: rgba(147, 51, 234, 0.15);
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 20px;
}

h2 {
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    width: 60%;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: absolute;
    bottom: -8px;
    left: 20%;
    border-radius: 3px;
}

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    color: #fff;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #a855f7, #34d399);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(80, 250, 123, 0.5);
}

.time-warning, .date-warning {
    font-size: 0.9rem;
    margin-top: 10px;
}

.time-warning.occupied, .date-warning.closed {
    color: #ff6b6b;
}

.time-warning.available {
    color: #28a745;
}

.btn-schedule {
    position: fixed;
    bottom: 120px;
    right: 35px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50px;
    padding: 14px 25px;
    box-shadow: 0 8px 25px rgba(80, 250, 123, 0.5);
    z-index: 1000;
    transition: transform 0.4s ease, background 0.4s ease;
}

.btn-schedule:hover {
    background: linear-gradient(45deg, #34d399, #a855f7);
    transform: scale(1.12);
}

.whatsapp-links {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeIn 0.6s ease;
}

.whatsapp-btn.client {
    background: linear-gradient(45deg, #25D366, #00ff99);
}

.whatsapp-btn.admin {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

.whatsapp-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(80, 250, 123, 0.5);
}

.whatsapp-btn i {
    margin-right: 12px;
    font-size: 1.3rem;
}

.whatsapp-btn.disabled {
    background: #6b7280 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.whatsapp-btn .fa-whatsapp {
    font-size: 1.3rem;
}

#relogio {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.modal-content {
    background: var(--bg-color);
    border: none;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
}

.modal-header {
    border-bottom: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    color: var(--text-color);
    font-size: 1.1rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.9;
}

@media (max-width: 767px) {
    .container {
        margin-top: 100px;
        padding: 20px;
    }
    .card {
        padding: 25px;
    }
    .section-header {
        font-size: 1.6rem;
    }
    .btn-custom {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    .btn-schedule {
        bottom: 100px;
        right: 25px;
        padding: 12px 20px;
    }
    .whatsapp-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    #relogio {
        font-size: 0.95rem;
    }
}