:root {
    --primary-color: #d52b68; /* Reddish pink */
    --secondary-color: #90238b; /* Dark purple */
    --accent-color: #bd4f19; /* Burnt orange */
    --text-color: #ffffff; /* Dark slate */
    --bg-color: rgba(255, 255, 255, 0.2); /* Lighter glassmorphism background */
}

/* Layout */
body {
    min-height: 100vh;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(135deg, #fcfcfc, #4b0082);
    animation: gradientShift 20s ease infinite;
    color: var(--text-color);
    transition: background 0.5s ease, color 0.5s ease;
    line-height: 1.6;
    will-change: background;
}

@keyframes gradientShift {
    0% { background: linear-gradient(135deg, #2e1a47, #4b0082); }
    50% { background: linear-gradient(135deg, #4b0082, #2e1a47); }
    100% { background: linear-gradient(135deg, #2e1a47, #4b0082); }
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    animation: particlePulse 15s ease-in-out infinite;
    will-change: opacity;
}

@keyframes particlePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.2; }
}

.container {
    max-width: 960px;
    margin: 70px auto 0;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    background: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(213, 43, 104, 0.2);
}

/* 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: 700;
    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.2px;
    margin-bottom: 1.8rem;
    position: relative;
}

.section-header::after {
    content: '';
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    position: absolute;
    bottom: -6px;
    left: 0;
    border-radius: 2px;
}

/* Forms */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.15);
    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 8px rgba(213, 43, 104, 0.3);
    background: rgba(255, 255, 255, 0.35);
    outline: none;
}

.form-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Buttons */
.btn-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 35px;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    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(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(213, 43, 104, 0.3);
}

.btn-custom:disabled {
    background: #cccccc;
    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 18px;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: linear-gradient(45deg, #a83ca3, #d2692c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(189, 79, 25, 0.3);
}

.btn-schedule {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 35px;
    padding: 10px 18px;
    box-shadow: 0 5px 15px rgba(213, 43, 104, 0.3);
    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.06);
}

/* WhatsApp Buttons */
.whatsapp-links {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    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(-2px);
    box-shadow: 0 6px 15px rgba(189, 79, 25, 0.3);
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.whatsapp-btn.disabled {
    background: #cccccc !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: soft-glow 2s ease-in-out infinite;
}

.value-message {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 8px;
    margin-bottom: 0;
    animation: soft-glow 2s ease-in-out infinite;
}

@keyframes soft-glow {
    0% { text-shadow: 0 0 6px rgba(213, 43, 104, 0.6), 0 0 12px rgba(144, 35, 139, 0.4); }
    50% { text-shadow: 0 0 10px rgba(213, 43, 104, 0.8), 0 0 20px rgba(144, 35, 139, 0.6); }
    100% { text-shadow: 0 0 6px rgba(213, 43, 104, 0.6), 0 0 12px rgba(144, 35, 139, 0.4); }
}

.valor-input {
    margin-bottom: 15px;
}

.date-occupied {
    border-color: #e63939;
    background: rgba(255, 102, 102, 0.2);
}

.date-sunday {
    border-color: var(--secondary-color);
    background: rgba(144, 35, 139, 0.2);
}

.time-warning, .date-warning {
    font-size: 0.85rem;
    margin-top: 8px;
}

.time-warning.occupied, .date-warning.closed {
    color: #e63939;
}

.time-warning.available {
    color: #ff8c00;
}

/* Headings */
h2 {
    font-weight: 700;
    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.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    width: 50%;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    position: absolute;
    bottom: -5px;
    left: 25%;
    border-radius: 2px;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 12px;
}

/* Modal */
#relogio {
    color: var(--primary-color);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-content {
    background: var(--bg-color);
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
}

.modal-header {
    border-bottom: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    color: var(--text-color);
    font-size: 0.95rem;
}

.btn-close {
    filter: invert(0.7);
    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, #fcfcfc, #f3e5f5);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-btn {
    background: var(--secondary-color);
    color: #fff;
}

.support-btn {
    background: var(--accent-color);
    color: #fff;
}

.blink-btn {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 767px) {
    .container {
        margin-top: 60px;
        padding: 12px;
    }
    .card {
        padding: 15px;
        border-radius: 12px;
    }
    .section-header {
        font-size: 1.3rem;
    }
    .btn-custom {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    .btn-schedule {
        bottom: 70px;
        right: 15px;
        padding: 8px 15px;
        max-width: 160px;
    }
    .whatsapp-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    #relogio {
        font-size: 0.85rem;
    }
}