:root {
    --primary-color: #d52b68; /* Reddish pink */
    --secondary-color: #90238b; /* Dark purple */
    --accent-color: #bd4f19; /* Burnt orange */
    --text-color: #f5f5f5; /* Softer white for readability */
    --bg-color: rgba(0, 0, 0, 0.25); /* Darker glassmorphism */
}

/* General Layout */
body {
    min-height: 100vh;
    font-family: 'Orbitron', 'Roboto', sans-serif;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1a0b2e, #2e1a47);
    animation: gradientShift 22s ease infinite;
    color: var(--text-color);
    transition: background 0.4s ease, color 0.4s ease;
    line-height: 1.8;
    will-change: background;
}

@keyframes gradientShift {
    0% { background: linear-gradient(135deg, #1a0b2e, #2e1a47); }
    50% { background: linear-gradient(135deg, #2e1a47, #4b0082); }
    100% { background: linear-gradient(135deg, #1a0b2e, #2e1a47); }
}

#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;
    will-change: opacity;
}

@keyframes particlePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

.container {
    max-width: 960px;
    margin: 80px auto 0;
    padding: 25px;
    position: relative;
    z-index: 1;
}

/* Card Styles */
.card {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(213, 43, 104, 0.35);
}

/* Section Transitions */
.section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    font-size: 1.8rem;
    font-weight: 900;
    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: 2rem;
    position: relative;
}

.section-header::after {
    content: '';
    width: 70px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    position: absolute;
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}

/* Form Elements */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-color);
    padding: 10px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(213, 43, 104, 0.4);
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.form-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Buttons */
.btn-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 35px;
    padding: 10px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease;
    cursor: pointer;
}

.btn-custom:hover, .btn-custom:focus {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(213, 43, 104, 0.4);
}

.btn-custom:disabled {
    background: #555555;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    border: none;
    border-radius: 35px;
    padding: 8px 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: linear-gradient(45deg, #a83ca3, #d2692c);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(189, 79, 25, 0.4);
}

.btn-schedule {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-radius: 35px;
    padding: 10px 20px;
    box-shadow: 0 6px 20px rgba(213, 43, 104, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s ease;
    max-width: 180px;
}

.btn-schedule:hover, .btn-schedule:focus {
    background: linear-gradient(45deg, #a83ca3, #d2692c);
    transform: scale(1.08);
}

/* WhatsApp Buttons */
.whatsapp-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.whatsapp-btn.client {
    background: linear-gradient(45deg, #ff8c00, #ffbf80);
}

.whatsapp-btn.admin {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

.whatsapp-btn:hover, .whatsapp-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(189, 79, 25, 0.4);
}

.whatsapp-btn i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.whatsapp-btn.disabled {
    background: #555555 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.whatsapp-btn .fa-whatsapp {
    font-size: 1.1rem;
}

/* Text and Warnings */
.progress-text {
    color: var(--primary-color);
    font-style: italic;
    font-size: 1rem;
    margin-top: 1.5rem;
    text-align: center;
    animation: neon-glow 1.8s ease-in-out infinite;
}

.value-message {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 0;
    animation: neon-glow 1.8s ease-in-out infinite;
}

@keyframes neon-glow {
    0% { text-shadow: 0 0 8px rgba(213, 43, 104, 0.7), 0 0 16px rgba(144, 35, 139, 0.6); }
    50% { text-shadow: 0 0 12px rgba(213, 43, 104, 0.9), 0 0 24px rgba(144, 35, 139, 0.8); }
    100% { text-shadow: 0 0 8px rgba(213, 43, 104, 0.7), 0 0 16px rgba(144, 35, 139, 0.6); }
}

.valor-input {
    margin-bottom: 20px;
}

.date-occupied {
    border-color: #ff4040;
    background: rgba(255, 64, 64, 0.2);
}

.date-sunday {
    border-color: var(--secondary-color);
    background: rgba(144, 35, 139, 0.2);
}

.time-warning, .date-warning {
    font-size: 0.9rem;
    margin-top: 8px;
}

.time-warning.occupied, .date-warning.closed {
    color: #ff4040;
}

.time-warning.available {
    color: #ff8c00;
}

/* Headings */
h2 {
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    width: 60%;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    position: absolute;
    bottom: -6px;
    left: 20%;
    border-radius: 2px;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    gap: 15px;
}

/* Modal */
#relogio {
    color: var(--primary-color);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-content {
    background: var(--bg-color);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    color: var(--text-color);
    font-size: 1rem;
}

.btn-close {
    filter: invert(0.9);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.btn-close:hover, .btn-close:focus {
    opacity: 1;
}

/* Outro CSS Integration */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 3s ease infinite;
}

@keyframes textGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.action-btn {
    margin-right: 6px;
}

.stats-card {
    background: linear-gradient(145deg, #2e1a47, #4b0082);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.home-btn {
    background: var(--secondary-color);
    color: #ffffff;
}

.support-btn {
    background: var(--accent-color);
    color: #ffffff;
}

.blink-btn {
    animation: blink 1.6s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 767px) {
    .container {
        margin-top: 60px;
        padding: 15px;
    }
    .card {
        padding: 20px;
        border-radius: 12px;
    }
    .section-header {
        font-size: 1.5rem;
    }
    .btn-custom {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    .btn-schedule {
        bottom: 80px;
        right: 20px;
        padding: 8px 15px;
        max-width: 160px;
    }
    .whatsapp-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    #relogio {
        font-size: 0.9rem;
    }
}