/* =====================================================
   Stock Bebidas AAUBI - Estilos CSS
   Convertido de Tailwind/globals.css para CSS puro
   ===================================================== */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #0a0a0f;
    --foreground: #f0f0f5;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --secondary: #1a1a2e;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #fbbf24;
    --border: #2a2a3e;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --input-bg: rgba(255, 255, 255, 0.05);
    --skeleton-base: rgba(255, 255, 255, 0.06);
    --skeleton-shine: rgba(255, 255, 255, 0.1);
}

/* Modo Claro */
[data-theme="light"] {
    --background: #f5f5f9;
    --foreground: #1a1a2e;
    --secondary: #e8e8f0;
    --border: #d1d5db;
    --text-muted: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --input-bg: rgba(0, 0, 0, 0.04);
    --skeleton-base: rgba(0, 0, 0, 0.06);
    --skeleton-shine: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] body {
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.05) 0px, transparent 50%);
}

[data-theme="light"] .glass-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: 0 1px 3px var(--shadow-color);
}

[data-theme="light"] .input-field {
    background: var(--input-bg);
    border-color: var(--border);
    color: var(--foreground);
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: var(--glass-border);
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .user-menu {
    background: #ffffff;
    border-color: var(--glass-border);
}

[data-theme="light"] .toast {
    background: #ffffff;
    color: var(--foreground);
    border-color: var(--glass-border);
}

[data-theme="light"] .header {
    border-bottom-color: var(--glass-border);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border);
    color: var(--foreground);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .zone-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

[data-theme="light"] .login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    color: var(--foreground);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Skeleton Loading */
.skeleton {
    background: var(--skeleton-base);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--skeleton-shine), transparent);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-text-sm {
    height: 10px;
    margin-bottom: 6px;
    width: 60%;
}

.skeleton-card {
    height: 100px;
    margin-bottom: 12px;
}

.skeleton-stat {
    height: 80px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    background: var(--background);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.1) 0px, transparent 50%);
    color: var(--foreground);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Glass Card */
.glass-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 35, 0.8));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 30% 0%, rgba(99, 102, 241, 0.06), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
}

.header-subtitle {
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.back-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    animation: btnShimmer 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes btnShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.btn-link:hover {
    color: var(--primary-hover);
}

.btn-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Icon Buttons */
.btn-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-icon.plus {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-icon.plus:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: scale(1.1);
}

.btn-icon.minus {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-icon.minus:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.btn-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon.plus:active:not(:disabled) {
    transform: scale(0.85);
    background: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.btn-icon.minus:active:not(:disabled) {
    transform: scale(0.85);
    background: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.btn-icon.pulse {
    animation: btnPulse 0.3s ease;
}

.btn-delete,
.btn-delete-small {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-delete:hover,
.btn-delete-small:hover {
    opacity: 1;
}

.btn-success-sm {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.btn-success-sm:hover {
    background: rgba(16, 185, 129, 0.3);
}

.btn-danger-sm {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.btn-danger-sm:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.5rem;
    margin-top: 1.25rem;
}

/* Input Fields */
.input-field {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.875rem 1rem;
    color: white;
    font-size: 1rem;
    width: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 0 20px rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

select.input-field option {
    background: #1a1a2e;
    color: white;
    padding: 12px;
}

textarea.input-field {
    resize: vertical;
    min-height: 80px;
}

/* Form */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hint {
    font-size: 0.875rem;
    font-style: italic;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--primary);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:nth-child(1) { border-left-color: #6366f1; }
.stat-card:nth-child(2) { border-left-color: #8b5cf6; }
.stat-card:nth-child(3) { border-left-color: #f59e0b; }
.stat-card:nth-child(4) { border-left-color: #10b981; }
.stat-card:nth-child(5) { border-left-color: #ec4899; }
.stat-card:nth-child(6) { border-left-color: #06b6d4; }

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.06), transparent);
    pointer-events: none;
}

.stat-card:nth-child(2)::after { background: linear-gradient(90deg, rgba(139, 92, 246, 0.06), transparent); }
.stat-card:nth-child(3)::after { background: linear-gradient(90deg, rgba(245, 158, 11, 0.06), transparent); }
.stat-card:nth-child(4)::after { background: linear-gradient(90deg, rgba(16, 185, 129, 0.06), transparent); }
.stat-card:nth-child(5)::after { background: linear-gradient(90deg, rgba(236, 72, 153, 0.06), transparent); }
.stat-card:nth-child(6)::after { background: linear-gradient(90deg, rgba(6, 182, 212, 0.06), transparent); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0.35rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Zones Grid */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.zone-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.zone-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.zone-link {
    display: block;
    padding: 1.5rem;
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.zone-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.zone-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.zone-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.zone-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.zone-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

/* Quantity Badge */
.quantity-badge {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    padding: 0.35rem 0.85rem;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.875rem;
    min-width: 55px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Stock Classes */
.stock-low {
    color: #f87171;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
}

.stock-medium {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.stock-high {
    color: #34d399;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    padding: 3rem;
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 50;
    animation: fadeIn 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    padding-top: env(safe-area-inset-top, 1rem);
    padding-bottom: env(safe-area-inset-bottom, 1rem);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #151525);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    margin: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-actions button {
    flex: 1;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.login-form {
    margin-top: 1.5rem;
}

.login-footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

/* Error/Success Messages */
.error-message {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.success-card {
    padding: 2rem;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

/* Bebidas */
.bebidas-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tipo-section {
    margin-bottom: 1rem;
}

.tipo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tipo-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.tipo-count {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.tipo-divider {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.bebidas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.bebida-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: bebidaFadeIn 0.4s ease both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bebida-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(99, 102, 241, 0.08);
}

@keyframes bebidaFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered animation delays */
.bebida-card:nth-child(1) { animation-delay: 0s; }
.bebida-card:nth-child(2) { animation-delay: 0.04s; }
.bebida-card:nth-child(3) { animation-delay: 0.08s; }
.bebida-card:nth-child(4) { animation-delay: 0.12s; }
.bebida-card:nth-child(5) { animation-delay: 0.16s; }
.bebida-card:nth-child(6) { animation-delay: 0.20s; }
.bebida-card:nth-child(7) { animation-delay: 0.24s; }
.bebida-card:nth-child(8) { animation-delay: 0.28s; }
.bebida-card:nth-child(9) { animation-delay: 0.32s; }
.bebida-card:nth-child(10) { animation-delay: 0.36s; }
.bebida-card:nth-child(n+11) { animation-delay: 0.4s; }

.bebida-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bebida-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.bebida-card:hover .bebida-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.bebida-nome {
    font-weight: 600;
    word-break: break-word;
    line-height: 1.3;
}

.bebida-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bebida-qtd {
    font-size: 1.25rem;
    font-weight: 800;
    min-width: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.badge-count {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert h3 {
    color: #f87171;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alert-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.875rem;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    padding: 1.5rem;
}

.chart-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chart-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 60px;
    flex-shrink: 0;
}

.chart-bar-container {
    flex: 1;
    display: flex;
    gap: 0.25rem;
}

.chart-bar {
    height: 24px;
    border-radius: 4px;
    min-width: 4px;
}

.chart-bar.entrada {
    background: rgba(16, 185, 129, 0.5);
}

.chart-bar.saida {
    background: rgba(239, 68, 68, 0.5);
}

.chart-values {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.chart-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-right: 0.25rem;
}

.legend-dot.entrada {
    background: rgba(16, 185, 129, 0.5);
}

.legend-dot.saida {
    background: rgba(239, 68, 68, 0.5);
}

/* Ranking */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ranking-pos {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ranking-pos.pos-1 {
    background: #eab308;
    color: #1a1a2e;
}

.ranking-pos.pos-2 {
    background: #9ca3af;
    color: #1a1a2e;
}

.ranking-pos.pos-3 {
    background: #d97706;
    color: #1a1a2e;
}

.ranking-pos.pos-4 {
    background: #4b5563;
}

.ranking-nome {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-bar-bg {
    width: 96px;
    height: 8px;
    background: #374151;
    border-radius: 4px;
    overflow: hidden;
}

.ranking-bar {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.ranking-value {
    font-size: 0.875rem;
    color: #f87171;
    width: 48px;
    text-align: right;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding-bottom: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.badge-entrada {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge-saida {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.badge-pendente {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.badge-processado {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Reports */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-card {
    padding: 1.25rem;
}

.report-card.processed {
    opacity: 0.6;
}

.report-header {
    margin-bottom: 0.75rem;
}

.report-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.report-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.report-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.report-items {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.report-items-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.report-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.report-item-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-size: 0.875rem;
}

.report-notes {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Report Form */
.report-header {
    text-align: center;
    margin-bottom: 2rem;
}

.report-form {
    padding: 1.5rem;
}

.item-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.item-bebida {
    flex: 1;
    min-width: 0;
}

.item-qtd {
    width: 80px;
    flex-shrink: 0;
}

.item-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-text {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

/* Utility Classes */
.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.text-muted {
    color: var(--text-muted);
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .bebidas-grid {
        grid-template-columns: 1fr;
    }

    .bebida-card {
        padding: 0.75rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5));
}

/* =====================================================
   Sistema de Utilizadores - Estilos Adicionais
   ===================================================== */

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.user-avatar-med {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.user-role {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin,
.user-role.role-admin {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.role-trabalhador,
.user-role.role-trabalhador {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: linear-gradient(135deg, #1a1a2e, #151525);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
    color: #d1d5db;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu-item.text-danger {
    color: #f87171;
}

.user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #1a1a2e, #151525);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.3s ease;
    min-width: 250px;
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.5);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.5);
}

.toast button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.25rem;
    margin-left: auto;
    padding: 0;
}

.toast-hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Profile Page */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

.profile-card {
    padding: 2rem;
    text-align: center;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.profile-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-stat {
    flex: 1;
    text-align: center;
}

.profile-stat-value {
    display: block;
    font-weight: 600;
}

.profile-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.password-form {
    margin-top: 1rem;
}

/* Admin Pages */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

.form-row .form-btn {
    display: flex;
    align-items: flex-end;
}

.create-user-form {
    margin-top: 1rem;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-cell>div {
    display: flex;
    flex-direction: column;
}

.text-small {
    font-size: 0.75rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

.btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.btn-warning:hover {
    background: rgba(251, 191, 36, 0.3);
}

.btn-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.3);
}

.row-inactive {
    opacity: 0.5;
}

.badge-you {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
}

.badge-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge-admin {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge-trabalhador {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.badge-action {
    text-transform: capitalize;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.badge-muted {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.badge-default {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

/* Filter Row */
.filter-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-form {
    width: 100%;
}

/* Success Message */
.success-message {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 1rem;
    border-radius: 12px;
}

/* Users Active Grid */
.users-active-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.user-active-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.user-active-name {
    font-weight: 500;
}

.user-active-count {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-tag {
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-size: 0.75rem;
}

/* Zone Footer */
.zone-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zone-creator {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Bebida Details */
.bebida-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bebida-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Report Processed */
.report-processed-by {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Stat Warning */
.stat-warning {
    border-color: rgba(251, 191, 36, 0.3);
}

/* App Footer */
.app-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}

/* Utilities */
.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-warning {
    color: #fbbf24;
}

/* Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .bebidas-grid {
        grid-template-columns: 1fr;
    }

    .bebida-card {
        flex-wrap: wrap;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .user-name {
        display: none;
    }

    .form-row {
        flex-direction: column;
    }


    .filter-buttons-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =====================================================
   CALENDÁRIO DE FESTAS — PREMIUM
   ===================================================== */

/* Utilities */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table tbody td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================== WEEK CAROUSEL ==================== */
.week-carousel {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.wk-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.7), rgba(20, 20, 35, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.wk-arrow:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.wk-cards {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
}

/* ==================== DAY CARD (.dc) ==================== */
.dc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0.5rem 0.75rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(30, 30, 55, 0.85), rgba(18, 18, 32, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: dcSlideIn 0.4s ease both;
    min-height: 160px;
}

@keyframes dcSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dc:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

.dc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%);
    pointer-events: none;
}

/* Past days */
.dc--past {
    opacity: 0.35;
    pointer-events: auto;
}

.dc--past:hover {
    opacity: 0.55;
    transform: translateY(-2px);
}

/* TODAY */
.dc--today {
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15), rgba(30, 30, 55, 0.85));
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15), inset 0 0 30px rgba(99, 102, 241, 0.05);
}

.dc--today:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3), 0 0 50px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.6);
}

.dc--today::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6366f1, #a855f7, #6366f1, transparent);
    border-radius: 0 0 4px 4px;
}

/* Has festa */
.dc--festa {
    border-color: rgba(255, 255, 255, 0.1);
}

/* DAY CARD CONTENT */
.dc__weekday {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.15rem;
}

.dc--today .dc__weekday {
    color: rgba(165, 180, 252, 0.8);
}

.dc__num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dc--today .dc__num {
    background: linear-gradient(180deg, #c7d2fe, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
}

.dc__month {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.25rem;
}

/* Badge Hoje */
.dc__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Festas inside card */
.dc__festas {
    width: 100%;
    margin-top: auto;
    padding-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dc__festa {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--fc, #8b5cf6);
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.dc__festa:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.dc__festa-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.dc__festa-nome {
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.dc__festa-count {
    font-size: 0.55rem;
    opacity: 0.6;
    flex-shrink: 0;
}

/* Add hint (+) for empty days */
.dc__add-hint {
    margin-top: auto;
    opacity: 0;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    padding: 0.25rem;
}

.dc:hover .dc__add-hint {
    opacity: 1;
    color: rgba(139, 92, 246, 0.6);
    transform: scale(1.1);
}

/* ==================== FULL CALENDAR ==================== */
.full-cal-wrap {
    margin-bottom: 2rem;
    animation: fcSlide 0.35s ease;
}

@keyframes fcSlide {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--foreground) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
}

.cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.cal-month-title {
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 200px;
    text-align: center;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.cal-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    border-radius: 12px;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.2s;
    min-height: 65px;
}

.cal-day-empty {
    background: transparent;
}

.cal-day:not(.cal-day-empty) {
    background: rgba(255, 255, 255, 0.03);
}

.cal-day:not(.cal-day-empty):hover {
    background: rgba(255, 255, 255, 0.06);
}

.cal-day-today {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.cal-day-has-festa {
    cursor: pointer;
}

.cal-day-has-festa:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: scale(1.05);
}

.cal-day-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.cal-day-today .cal-day-number {
    color: var(--primary);
    font-weight: 700;
}

.cal-day-dots {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

/* ==================== MODAL FESTA ==================== */
.modal-festa {
    max-width: 500px;
}

.cor-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.25rem;
}

.cor-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.cor-option:hover {
    transform: scale(1.2);
}

.cor-option.cor-selected {
    border-color: white;
    box-shadow: 0 0 12px currentColor;
    transform: scale(1.15);
}

/* ==================== MODAL ENCOMENDA ==================== */
.modal-encomenda {
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.encomenda-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.encomenda-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.encomenda-header .btn-icon {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
}

.encomenda-add-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.encomenda-add-form .input-field {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.875rem;
}

.encomenda-add-form .input-sm {
    max-width: 80px;
}

.encomenda-add-form .btn-primary {
    padding: 0.6rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.encomenda-itens {
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.encomenda-empty {
    padding: 2rem;
    text-align: center;
}

.encomenda-total {
    padding: 0.75rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.encomenda-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== BOTÕES ==================== */
.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 768px) {
    .week-carousel {
        min-height: 140px;
        gap: 0.4rem;
    }

    .week-carousel {
        grid-template-columns: 32px 1fr 32px;
        gap: 0.4rem;
    }

    .wk-arrow {
        border-radius: 12px;
    }

    .wk-cards {
        gap: 0.3rem;
    }

    .dc {
        padding: 0.6rem 0.25rem 0.5rem;
        border-radius: 14px;
        min-height: 120px;
    }

    .dc__num {
        font-size: 1.4rem;
    }

    .dc__weekday {
        font-size: 0.55rem;
    }

    .dc__month {
        display: none;
    }

    .dc__festa-nome {
        display: none;
    }

    .dc__festa {
        justify-content: center;
        border-left: none;
        padding: 2px;
    }

    .dc__badge {
        font-size: 0.45rem;
        padding: 1px 6px;
    }

    .cal-day {
        min-height: 50px;
        padding: 0.25rem;
        border-radius: 8px;
    }

    .cal-day-number {
        font-size: 0.75rem;
    }

    .encomenda-add-form {
        flex-wrap: wrap;
    }

    .encomenda-add-form .input-field:first-child {
        flex: 1 1 100%;
    }

    /* Modais mobile: full-screen com scroll interno */
    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        margin: 0;
        padding: 1.5rem;
        animation: none;
    }

    .modal-encomenda {
        max-height: 100vh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    .encomenda-header {
        flex-shrink: 0;
    }

    #encCursosList {
        flex-shrink: 0;
    }

    #encCursoPanel {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }

    .encomenda-itens {
        max-height: none;
        overflow-y: visible;
    }

    .encomenda-footer {
        flex-shrink: 0;
        flex-direction: row;
        padding-top: 0.5rem;
        padding-bottom: env(safe-area-inset-bottom, 0.5rem);
    }

    .form-row {
        flex-direction: column;
    }

    /* Touch-friendly buttons */
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }

    .btn-sm {
        min-height: 40px;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .dc__festas {
        display: none;
    }

    .dc__add-hint {
        display: none;
    }

    .dc {
        padding: 0.5rem 0.15rem 0.4rem;
    }

    .dc__num {
        font-size: 1.2rem;
    }
}

/* =====================================================
   ZONA PAGE — COMPONENTES EXTRA
   ===================================================== */

/* Mínimo Stock Badge */
.minimo-badge {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.minimo-badge:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    border-color: rgba(99, 102, 241, 0.4);
}

/* Sort Buttons */
.sort-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.sort-btn.active {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

.sort-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

/* Bebida Info Hover */
.bebida-info:hover .bebida-icon {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Stock Orders */
.se-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.se-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(30, 30, 55, 0.8), rgba(18, 18, 32, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.se-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
}

.se-card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.se-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.se-card-icon--pendente {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.08));
    color: #f59e0b;
}

.se-card-icon--recebida {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.08));
    color: #10b981;
}

.se-card-text {
    min-width: 0;
}

.se-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.se-card-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.se-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.se-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.se-badge--pendente {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.se-badge--recebida {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.se-btn-recv {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.se-btn-recv:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
}

.se-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.35);
}

.se-modal-itens {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
}

.se-item-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.se-item-row .input-field {
    flex: 1;
}

.se-item-row .input-sm {
    max-width: 80px;
}

.se-item-remove {
    background: none;
    border: none;
    color: rgba(239, 68, 68, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.se-item-remove:hover {
    color: #ef4444;
}

@media (max-width: 768px) {
    .se-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .se-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* =====================================================
   CALENDÁRIO DE FESTAS (extraído de zona.php inline)
   ===================================================== */
.week-carousel {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 2rem;
}

.wk-cards {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.wk-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.7), rgba(20, 20, 35, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(8px);
}

.wk-arrow:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.2));
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

/* Day Card */
.dc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0.5rem 0.75rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(30, 30, 55, 0.85), rgba(18, 18, 32, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 160px;
    animation: dcIn 0.4s ease both;
}

@keyframes dcIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dc:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
}

.dc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
    pointer-events: none;
}

/* Past */
.dc--past {
    opacity: 0.35;
}

.dc--past:hover {
    opacity: 0.55;
    transform: translateY(-2px);
}

/* Today */
.dc--today {
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.15), rgba(30, 30, 55, 0.85));
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.15), inset 0 0 30px rgba(99, 102, 241, 0.05);
}

.dc--today:hover {
    box-shadow: 0 12px 45px rgba(99, 102, 241, 0.35), 0 0 60px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.65);
}

.dc--today::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6366f1, #a855f7, #6366f1, transparent);
    border-radius: 0 0 4px 4px;
}

/* Content */
.dc__weekday {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.15rem;
}

.dc--today .dc__weekday {
    color: rgba(165, 180, 252, 0.8);
}

.dc__num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.dc--today .dc__num {
    background: linear-gradient(180deg, #c7d2fe, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dc__month {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.25rem;
}

.dc__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Festas inside card */
.dc__festas {
    width: 100%;
    margin-top: auto;
    padding-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dc__festa {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--fc, #8b5cf6);
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.dc__festa:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.dc__festa-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.dc__festa-nome {
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.dc__festa-count {
    font-size: 0.55rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.dc__add-hint {
    margin-top: auto;
    opacity: 0;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    padding: 0.25rem;
}

.dc:hover .dc__add-hint {
    opacity: 1;
    color: rgba(139, 92, 246, 0.6);
    transform: scale(1.1);
}

/* ===== FULL CALENDAR ===== */
.full-cal-wrap {
    margin-bottom: 2rem;
    animation: fcSlide 0.35s ease;
}

@keyframes fcSlide {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.cal-month-title {
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 200px;
    text-align: center;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.cal-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-day {
    aspect-ratio: 1;
    border-radius: 14px;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 60px;
    background: linear-gradient(160deg, rgba(30, 30, 55, 0.6), rgba(18, 18, 32, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: default;
}

.cal-day-empty {
    background: transparent;
    border-color: transparent;
}

.cal-day:not(.cal-day-empty):hover {
    background: linear-gradient(160deg, rgba(40, 40, 65, 0.8), rgba(25, 25, 42, 0.7));
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.cal-day-today {
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.12), rgba(30, 30, 55, 0.7));
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.cal-day-has-festa {
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.08);
}

.cal-day-has-festa:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.cal-day-number {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.cal-day-today .cal-day-number {
    color: #a5b4fc;
    font-weight: 800;
}

.cal-day-dots {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.cal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px currentColor;
}

/* Calendar Responsive */
@media (max-width: 768px) {
    .week-carousel {
        grid-template-columns: 32px 1fr 32px;
        gap: 6px;
    }

    .wk-cards {
        gap: 5px;
    }

    .dc {
        padding: 0.6rem 0.25rem 0.5rem;
        border-radius: 14px;
        min-height: 120px;
    }

    .dc__num {
        font-size: 1.4rem;
    }

    .dc__weekday {
        font-size: 0.55rem;
    }

    .dc__month {
        display: none;
    }

    .dc__festa-nome {
        display: none;
    }

    .dc__festa {
        justify-content: center;
        border-left: none;
        padding: 2px;
    }

    .dc__badge {
        font-size: 0.45rem;
        padding: 1px 6px;
    }

    .cal-day {
        min-height: 45px;
        border-radius: 10px;
        padding: 0.25rem;
    }

    .cal-day-number {
        font-size: 0.75rem;
    }

    .cal-dot {
        width: 5px;
        height: 5px;
    }

    .cal-month-title {
        font-size: 1rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {

    .dc__festas,
    .dc__add-hint {
        display: none;
    }

    .dc {
        padding: 0.5rem 0.15rem 0.4rem;
        min-height: 100px;
    }

    .dc__num {
        font-size: 1.2rem;
    }
}

/* =====================================================
   STOCK ENCOMENDAS — RESUMO COMPACTO
   ===================================================== */
.se-summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.se-summary-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.se-summary-num--ok {
    color: #10b981;
}

.se-summary-num--total {
    color: var(--primary);
}

.se-summary-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Light mode fixes for stat values */
[data-theme="light"] .stat-value {
    background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   Design Improvements v2.1
   ===================================================== */

/* Report cards — indicador de status com borda esquerda colorida */
.report-card {
    padding: 1.5rem;
    border-left: 3px solid rgba(251, 191, 36, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.report-card.processed {
    border-left-color: rgba(16, 185, 129, 0.5);
    opacity: 0.65;
}

.report-card:not(.processed):hover {
    border-left-color: #fbbf24;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), -2px 0 0 0 rgba(251, 191, 36, 0.4);
}

/* Animação de entrada para report cards */
.reports-list .report-card {
    animation: reportFadeIn 0.35s ease both;
}
.reports-list .report-card:nth-child(1) { animation-delay: 0s; }
.reports-list .report-card:nth-child(2) { animation-delay: 0.07s; }
.reports-list .report-card:nth-child(3) { animation-delay: 0.14s; }
.reports-list .report-card:nth-child(n+4) { animation-delay: 0.21s; }

@keyframes reportFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Badges de status com borda para maior contraste */
.badge-pendente {
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-processado {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-active {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.badge-inactive {
    background: rgba(107, 114, 128, 0.12);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Item badges das bebidas consumidas */
.report-item-badge {
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: #c7d2fe;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.report-item-badge:hover {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

/* Secção de bebidas consumidas */
.report-items {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
}

/* Filter buttons com estado ativo mais distinto */
.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.filter-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    color: white;
}

.filter-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Animação do ícone de sucesso na página de report */
.success-icon {
    animation: successBounce 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes successBounce {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* Glass card — destaque sutil no topo */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}

/* Cabeçalhos dentro de glass-card */
.glass-card > h3 {
    font-size: 1.05rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--foreground);
}

/* Tabela de utilizadores — melhor padding e hover */
.data-table tbody td {
    padding: 0.7rem 0.75rem;
}

.data-table tbody tr {
    transition: background 0.15s;
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

/* Btn-sm melhorado */
.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-sm:hover {
    transform: translateY(-1px);
}

/* Report actions — espaçamento melhorado */
.report-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.25rem;
}

/* Meta do report — melhor espaçamento */
.report-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.2rem;
    line-height: 1.6;
}

/* Alert de sucesso/erro nas páginas de admin */
.alert-success {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.9rem;
    animation: alertSlideIn 0.3s ease;
}

.alert-danger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #f87171;
    font-size: 0.9rem;
    animation: alertSlideIn 0.3s ease;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Melhorias mobile para reports */
@media (max-width: 640px) {
    .report-card {
        padding: 1.1rem 1rem 1.1rem 1.25rem;
    }
    .report-actions {
        flex-wrap: wrap;
    }
    .btn-success-sm, .btn-danger-sm {
        font-size: 0.8rem;
        padding: 0.45rem 0.6rem;
    }
}
