﻿/* ============================================
   SEE&AGENDE - CSS PRINCIPAL COMPLETO
   Versão v6.0 - TEMA ESCURO ESTILO INSTAGRAM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   1. ROOT VARIABLES - TEMAS
   ============================================ */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1f2937;
    --gray-dark: #4b5563;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --gradient: linear-gradient(135deg, #667eea, #764ba2);
    --gradient-light: linear-gradient(135deg, #667eea10, #764ba210);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Tema Claro */
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-hover: rgba(0, 0, 0, 0.04);
    --bg-modal: rgba(0, 0, 0, 0.6);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --toast-bg: #ffffff;
    --toast-text: #1f2937;
    --scrollbar-track: #f3f4f6;
    --scrollbar-thumb: linear-gradient(135deg, #667eea, #764ba2);
    --welcome-bg: linear-gradient(135deg, #667eea, #764ba2);
    --welcome-text: #ffffff;
    --quick-action-bg: #f9fafb;
    --quick-action-hover: #ffffff;
    --rank-bg: #f3f4f6;
    --rank-text: #4b5563;
    --divider-color: #e5e7eb;
    --footer-bg: #1f2937;
    --footer-text: #9ca3af;
    --auth-bg: #ffffff;
    --auth-text: #1f2937;
    --auth-subtext: #6b7280;
    --landing-left-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --landing-right-bg: #ffffff;
    --toast-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --badge-bg: #f3f4f6;
    --badge-text: #4b5563;
}

/* ============================================
   2. TEMA ESCURO (ESTILO INSTAGRAM)
   ============================================ */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: #1a1a1a;
    --bg-input: #262626;
    --bg-hover: rgba(255, 255, 255, 0.04);
    --bg-modal: rgba(0, 0, 0, 0.85);
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --text-muted: #737373;
    --border-color: #262626;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --toast-bg: #1a1a1a;
    --toast-text: #f5f5f5;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --scrollbar-track: #1a1a1a;
    --scrollbar-thumb: linear-gradient(135deg, #667eea, #764ba2);
    --welcome-bg: linear-gradient(135deg, #1a1a2e, #16213e);
    --welcome-text: #f5f5f5;
    --quick-action-bg: #1a1a1a;
    --quick-action-hover: #262626;
    --rank-bg: #1a1a1a;
    --rank-text: #a8a8a8;
    --divider-color: #262626;
    --footer-bg: #0a0a0a;
    --footer-text: #737373;
    --auth-bg: #121212;
    --auth-text: #f5f5f5;
    --auth-subtext: #a8a8a8;
    --landing-left-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f3460 100%);
    --landing-right-bg: #121212;
    --toast-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --badge-bg: #262626;
    --badge-text: #a8a8a8;
}

/* ============================================
   3. RESET E BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   4. SCROLLBAR PERSONALIZADA
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-secondary);
}

/* ============================================
   5. LANDING PAGE - SPLIT SCREEN
   ============================================ */
.landing-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-primary);
}

.landing-left {
    flex: 1;
    background: var(--landing-left-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.landing-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.08);
    pointer-events: none;
    animation: floatPulse 8s ease-in-out infinite;
}

.landing-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(118, 75, 162, 0.06);
    pointer-events: none;
    animation: floatPulse 10s ease-in-out infinite reverse;
}

@keyframes floatPulse {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(30px, -20px);
    }
}

.landing-content {
    max-width: 480px;
    width: 100%;
    color: white;
    position: relative;
    z-index: 1;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 32px;
}

.landing-logo i {
    font-size: 32px;
    color: #667eea;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    }
}

.landing-logo span {
    color: white;
}

.landing-logo span span {
    color: #667eea;
}

.landing-verse {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid #667eea;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 28px;
}

.landing-verse i {
    color: #667eea;
    margin-right: 10px;
    font-size: 18px;
}

.landing-verse span {
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
    opacity: 0.9;
}

.landing-verse small {
    display: block;
    font-size: 12px;
    opacity: 0.5;
    margin-top: 4px;
    margin-left: 28px;
}

.landing-content h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.landing-content h1 span {
    color: #667eea;
}

.landing-content p {
    font-size: 17px;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 24px;
}

.landing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.landing-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
}

.landing-badges i {
    color: #4ade80;
}

.landing-stats {
    display: flex;
    gap: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-stats div {
    font-size: 14px;
    opacity: 0.6;
}

.landing-stats strong {
    font-size: 18px;
    opacity: 1;
    display: block;
}

.landing-footer {
    margin-top: 40px;
    font-size: 12px;
    opacity: 0.3;
}

.landing-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 100vh;
    background: var(--landing-right-bg);
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-box {
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header .auth-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--auth-subtext);
    font-size: 14px;
}

/* ============================================
   6. INPUTS E BOTÕES
   ============================================ */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group .toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    z-index: 2;
    transition: var(--transition);
}

.input-group .toggle-pwd:hover {
    color: var(--primary);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-terms {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.auth-terms label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.auth-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.auth-terms a {
    color: var(--primary);
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider-color);
}

/* ============================================
   7. BOTÕES
   ============================================ */
.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35);
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-login:hover::after {
    opacity: 1;
}

.btn-3d {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-3d:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-3d:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.btn-3d::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-3d:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: var(--radius-full);
}

.error-message {
    padding: 12px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

.success-message {
    padding: 12px;
    background: #d1fae5;
    color: #059669;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--divider-color);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 13px;
}

.auth-footer span {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-footer span:hover {
    text-decoration: underline;
}

/* ============================================
   8. MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-modal);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    width: 500px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid var(--border-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content .close {
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    background: none;
    border: none;
    line-height: 1;
}

.modal-content .close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content .form-group {
    margin-bottom: 16px;
}

.modal-content .form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.modal-content .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.modal-content .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.modal-buttons button {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

/* ============================================
   9. APP PRINCIPAL
   ============================================ */
.app {
    display: none;
    background: var(--bg-primary);
    min-height: 100vh;
}

.header {
    background: var(--bg-secondary);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header h2 {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header h2 i {
    -webkit-text-fill-color: initial;
    color: var(--primary);
}

.header>div {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   10. SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 260px;
    height: calc(100% - 70px);
    background: var(--bg-secondary);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 99;
    padding: 10px 0;
    border-right: 1px solid var(--border-color);
}

.sidebar button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 20px);
    margin: 4px 10px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.sidebar button i {
    width: 24px;
    font-size: 16px;
}

.sidebar button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar button.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sidebar button.active i {
    color: white;
}

.main {
    margin-left: 260px;
    padding: 30px;
    min-height: calc(100vh - 70px);
}

/* ============================================
   11. MENU MOBILE
   ============================================ */
.menu-mobile-btn {
    display: none;
    position: fixed;
    top: 16px;
    /* 🔥 Mudado de bottom para top */
    right: 16px;
    /* 🔥 Mantido na direita */
    width: 48px;
    /* 🔥 Um pouco menor para ficar mais elegante */
    height: 48px;
    border-radius: 12px;
    /* 🔥 Mudado de 50% para 12px (arredondado, não círculo) */
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.menu-mobile-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.menu-mobile-btn:active {
    transform: scale(0.95);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 98;
}

/* Quando o sidebar está aberto, o overlay aparece */
.sidebar-overlay.active {
    display: block !important;
}

/* ============================================
   12. BADGES E STATUS
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fed7aa;
    color: #7c2d12;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-dono {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.badge-super {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
}

.badge-profissional {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-badge.agendado {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.agendado .dot {
    background: #1d4ed8;
}

.status-badge.pendente {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.pendente .dot {
    background: #d97706;
}

.status-badge.concluido {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.concluido .dot {
    background: #065f46;
}

.status-badge.cancelado {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.cancelado .dot {
    background: #991b1b;
}

.status-badge.ativo {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.ativo .dot {
    background: #065f46;
}

.status-badge.inativo {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.inativo .dot {
    background: #991b1b;
}

/* ============================================
   13. TOAST E LOADING
   ============================================ */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    color: var(--toast-text);
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--toast-shadow);
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--toast-bg);
    border: 1px solid var(--border-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification i {
    font-size: 20px;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-error i {
    color: var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-warning i {
    color: var(--warning);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-info i {
    color: var(--info);
}

.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   14. DASHBOARD - STAT CARDS
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    font-size: 36px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.stat-card .stat-content {
    flex: 1;
    min-width: 0;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card .stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-card.premium {
    background: var(--gradient);
    color: white;
}

.stat-card.premium .stat-icon {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.stat-card.premium .stat-value {
    color: white;
}

.stat-card.premium .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-card.premium .stat-sub {
    color: rgba(255, 255, 255, 0.6);
}

.stat-card .stat-icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.stat-card .stat-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.stat-card .stat-icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.stat-card .stat-icon.orange {
    background: #fffbeb;
    color: #ea580c;
}

.stat-card .stat-icon.red {
    background: #fef2f2;
    color: #dc2626;
}

.stat-card .stat-icon.teal {
    background: #ecfdf5;
    color: #0d9488;
}

.stat-card .stat-icon.pink {
    background: #fdf2f8;
    color: #db2777;
}

.stat-card .stat-icon.indigo {
    background: #eef2ff;
    color: #4f46e5;
}

/* ============================================
   15. CARDS GERAIS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin-bottom: 24px;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

/* ============================================
   16. TABELAS
   ============================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table thead {
    background: var(--gradient);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   17. BOTÕES DE AÇÃO
   ============================================ */
.actions-cell {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    font-size: 15px;
    color: var(--text-muted);
}

.btn-icon:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
}

.btn-icon.btn-edit:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.btn-icon.btn-check:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.btn-icon.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn-icon.btn-whatsapp {
    color: #25D366;
}

.btn-icon.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
}

/* ============================================
   18. FILTROS
   ============================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-group label i {
    margin-right: 4px;
    color: var(--primary);
}

.filter-input,
.filter-select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ============================================
   19. QUICK ACTIONS
   ============================================ */
.quick-actions {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.quick-actions h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.quick-actions h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    justify-items: center;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--quick-action-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.quick-action i {
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.quick-action:hover {
    border-color: var(--primary);
    background: var(--quick-action-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.quick-action:hover i {
    transform: scale(1.1);
}

/* ============================================
   20. WELCOME BANNER
   ============================================ */
.welcome-banner {
    background: var(--welcome-bg);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 24px;
    color: var(--welcome-text);
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    animation: floatPulse 6s ease-in-out infinite;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.welcome-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.welcome-content p {
    opacity: 0.85;
    margin: 4px 0 0;
    font-size: 15px;
}

.welcome-date {
    text-align: right;
    flex-shrink: 0;
}

.welcome-date .day {
    display: block;
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
}

.welcome-date .date {
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================
   21. RANKING
   ============================================ */
.top-servicos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.servico-rank-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--rank-bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.servico-rank-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.rank-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--border-color);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.rank-number.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.rank-number.rank-2 {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}

.rank-number.rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}

.servico-rank-info {
    flex: 1;
    min-width: 0;
}

.servico-rank-nome {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.servico-rank-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.servico-rank-stats .qtd {
    color: var(--primary);
    font-weight: 500;
}

.rank-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    max-width: 80px;
    overflow: hidden;
}

.rank-bar .fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient);
    transition: width 1s ease-out;
}

/* ============================================
   22. CLIENTES E PRÓXIMOS AGENDAMENTOS
   ============================================ */
.ultimos-clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.cliente-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.cliente-card-item:hover {
    background: var(--border-color);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cliente-avatar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 700;
}

.cliente-info-data {
    flex: 1;
    min-width: 0;
}

.cliente-nome-completo {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cliente-contato-info {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   23. ESTATÍSTICAS MINI
   ============================================ */
.agendamento-stats,
.servico-stats,
.cliente-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-mini {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-mini-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}

.stat-mini-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   24. CARDS MOBILE
   ============================================ */
.agendamento-card-mobile,
.servico-card-mobile,
.cliente-card-mobile,
.historico-card-mobile {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    margin-bottom: 8px;
}

.agendamento-card-mobile:hover,
.servico-card-mobile:hover,
.cliente-card-mobile:hover,
.historico-card-mobile:hover {
    box-shadow: var(--shadow);
}

.cliente-avatar-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.card-actions-mobile {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.card-actions-mobile .btn-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-hover);
    border: 1px solid transparent;
}

.card-actions-mobile .btn-icon i {
    font-size: 13px;
}

.cliente-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.cliente-card-actions .btn-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-hover);
    border: 1px solid transparent;
}

.btn-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    text-decoration: none;
    transition: var(--transition);
}

.btn-whatsapp-icon:hover {
    background: #25D366;
    color: white;
    transform: scale(1.1);
}

/* ============================================
   25. EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 56px;
    color: var(--border-color);
    margin-bottom: 16px;
}

.empty-state h4 {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 18px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ============================================
   26. UTILIDADES
   ============================================ */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   27. THEME TOGGLE
   ============================================ */
.theme-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
    gap: 16px;
}

.theme-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-info .theme-icon {
    font-size: 32px;
    color: var(--primary);
}

.theme-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.theme-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-label {
    font-size: 20px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-switch input:checked+.slider {
    background: var(--gradient);
}

.theme-switch input:checked+.slider:before {
    transform: translateX(24px);
}

.theme-preview {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.theme-preview-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.theme-preview-row .preview-item {
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.theme-preview-row .preview-item.active-preview {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* ============================================
   28. RESPONSIVIDADE
   ============================================ */

@media (max-width: 1024px) {
    .landing-split {
        flex-direction: column;
    }

    .landing-left {
        min-height: auto;
        padding: 40px 32px;
    }

    .landing-content {
        max-width: 100%;
        text-align: center;
    }

    .landing-logo {
        justify-content: center;
    }

    .landing-badges {
        justify-content: center;
    }

    .landing-stats {
        justify-content: center;
    }

    .landing-verse small {
        margin-left: 0;
        text-align: center;
    }

    .landing-right {
        min-height: auto;
        padding: 40px 32px;
    }

    .landing-content h1 {
        font-size: 30px;
    }

    .card-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        top: 0;
        height: 100%;
        width: 280px;
        padding-top: 80px;
        box-shadow: var(--shadow-xl);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main {
        margin-left: 0 !important;
        padding: 16px;
    }

    .menu-mobile-btn {
        display: flex !important;
    }

    .header {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .header h2 {
        font-size: 18px;
    }

    .landing-left {
        padding: 24px 16px;
    }

    .landing-right {
        padding: 24px 16px;
    }

    .landing-content h1 {
        font-size: 28px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .modal-content {
        padding: 24px;
        margin: 10px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons button {
        width: 100%;
        text-align: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-action {
        max-width: 100%;
    }

    .landing-stats {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .landing-badges {
        flex-direction: column;
        align-items: center;
    }

    .landing-badges span {
        width: 100%;
        justify-content: center;
    }

    .auth-options {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .welcome-content {
        flex-direction: column;
        text-align: center;
    }

    .welcome-date {
        text-align: center;
    }

    .welcome-banner {
        padding: 20px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .filter-group {
        min-width: 100%;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        margin-bottom: 12px;
        background: transparent !important;
    }

    .data-table tbody tr:hover {
        background: transparent !important;
    }

    .data-table tbody td {
        display: block;
        padding: 0 !important;
        border-bottom: none !important;
        background: transparent !important;
    }

    .data-table tbody td:first-child {
        padding-left: 0 !important;
    }

    .agendamento-card-mobile {
        display: block !important;
    }

    .servico-card-mobile {
        display: block !important;
    }

    .profissional-card-mobile {
        display: flex !important;
    }

    .historico-card-mobile {
        display: block !important;
    }

    .cliente-card-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .agendamento-card-mobile {
        display: none !important;
    }

    .servico-card-mobile {
        display: none !important;
    }

    .profissional-card-mobile {
        display: none !important;
    }

    .historico-card-mobile {
        display: none !important;
    }

    .cliente-card-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .landing-content h1 {
        font-size: 24px;
    }

    .landing-verse {
        padding: 12px 14px;
    }

    .landing-verse span {
        font-size: 13px;
    }

    .auth-header h2 {
        font-size: 22px;
    }

    .modal-content h3 {
        font-size: 20px;
    }

    .modal-content {
        padding: 20px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .quick-action {
        flex-direction: row;
        padding: 12px 16px;
        justify-content: center;
        max-width: 100%;
    }

    .quick-action i {
        font-size: 20px;
    }

    .stat-card .stat-value {
        font-size: 20px;
    }

    .stat-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .stat-card .stat-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }

    .page-title {
        font-size: 20px;
    }

    .welcome-content h2 {
        font-size: 20px;
    }

    .servico-card-actions,
    .cliente-card-actions,
    .card-actions-mobile {
        flex-direction: column;
    }

    .servico-card-actions .btn-icon,
    .cliente-card-actions .btn-icon,
    .card-actions-mobile .btn-icon {
        width: 100%;
        justify-content: center;
    }

    .cliente-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .profissional-card-mobile {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .profissional-stats {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }

    .historico-card-header {
        flex-direction: column;
        gap: 4px;
    }

    .historico-data {
        font-size: 11px;
    }

    .agendamento-stats,
    .servico-stats,
    .cliente-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-mini-value {
        font-size: 18px;
    }

    .stat-mini-label {
        font-size: 10px;
    }
}

/* Touch devices - desabilitar hovers */
@media (hover: none) {
    .stat-card:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }

    .btn-3d:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    .quick-action:hover {
        transform: none;
    }

    .sidebar button:hover {
        transform: none;
    }

    .cliente-card-item:hover {
        transform: none;
    }

    .servico-rank-item:hover {
        transform: none;
    }
}

/* ============================================
   TOGGLE DE TEMA E TABS DE CONFIGURAÇÃO
   ============================================ */

/* Tabs de Configuração */
.config-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.config-tab {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.config-tab.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Theme Settings */
.theme-settings {
    padding: 4px 0;
}

.theme-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
    gap: 16px;
}

.theme-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-info .theme-icon {
    font-size: 32px;
    color: var(--primary);
}

.theme-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.theme-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-label {
    font-size: 20px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-switch input:checked+.slider {
    background: var(--gradient);
}

.theme-switch input:checked+.slider:before {
    transform: translateX(24px);
}

.theme-preview {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.theme-preview-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.theme-preview-row .preview-item {
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.theme-preview-row .preview-item.active-preview {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* Switch para horários */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background: var(--success);
}

.switch input:checked+.slider:before {
    transform: translateX(20px);
}

/* ============================================
   MODAIS CENTRALIZADOS E ONBOARDING
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid var(--border-color);
    margin: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content .close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    background: none;
    border: none;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
}

.modal-content .close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(90deg);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.onboarding-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin-bottom: 24px;
    text-align: center;
    border: 2px dashed var(--warning);
    position: relative;
    overflow: hidden;
}

.onboarding-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    pointer-events: none;
}

.onboarding-content {
    position: relative;
    z-index: 1;
}

.onboarding-content i {
    font-size: 48px;
    color: var(--warning);
    margin-bottom: 12px;
}

.onboarding-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.onboarding-content p {
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 15px;
}

.onboarding-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-dark);
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--warning);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.quick-actions {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.quick-actions h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.quick-actions h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    justify-items: center;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--quick-action-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    width: 100%;
    max-width: 180px;
    text-align: center;
}

.quick-action i {
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.quick-action:hover {
    border-color: var(--primary);
    background: var(--quick-action-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.quick-action:hover i {
    transform: scale(1.1);
}

.card-entry {
    animation: cardEntry 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.card-entry:nth-child(1) {
    animation-delay: 0.05s;
}

.card-entry:nth-child(2) {
    animation-delay: 0.10s;
}

.card-entry:nth-child(3) {
    animation-delay: 0.15s;
}

.card-entry:nth-child(4) {
    animation-delay: 0.20s;
}

@keyframes cardEntry {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 24px;
        margin: 10px;
        max-width: 100%;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons button {
        width: 100%;
        text-align: center;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-action {
        max-width: 100%;
        padding: 14px 16px;
    }

    .onboarding-steps {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .step {
        width: 100%;
        justify-content: center;
    }

    .onboarding-card {
        padding: 24px 16px;
    }

    .onboarding-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .quick-action {
        flex-direction: row;
        padding: 12px 16px;
        justify-content: center;
        max-width: 100%;
    }

    .quick-action i {
        font-size: 22px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-content h3 {
        font-size: 20px;
    }

    .onboarding-content i {
        font-size: 36px;
    }
}

/* ============================================
   AGENDA VISUAL - ESTILOS
   ============================================ */

/* Navegação da Agenda */
.agenda-navegacao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    flex-wrap: wrap;
    border: 1px solid var(--border-color);
}

.agenda-navegacao .agenda-titulo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 200px;
    text-align: center;
}

.btn-nav {
    background: var(--bg-hover);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-nav:hover {
    background: var(--primary);
    color: white;
}

.btn-nav.btn-hoje {
    width: auto;
    padding: 0 20px;
    border-radius: var(--radius-full);
    background: var(--gradient);
    color: white;
    font-weight: 500;
    font-size: 13px;
    gap: 8px;
}

.btn-nav.btn-hoje:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Tabs da Agenda */
.agenda-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.agenda-tab {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.agenda-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.agenda-tab.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Legenda */
.agenda-legenda {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    align-items: center;
}

.agenda-legenda span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legenda-cor {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legenda-disponivel {
    background: #10b981;
}

.legenda-ocupado {
    background: #ef4444;
}

.legenda-almoco {
    background: #f59e0b;
}

.legenda-fechado {
    background: #6b7280;
}

.legenda-info {
    margin-left: auto;
    color: var(--text-primary) !important;
    font-weight: 500;
}

.legenda-info i {
    color: var(--primary);
}

/* ============================================
   VISÃO POR DIA
   ============================================ */

.agenda-dia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.dia-semana {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.dia-data {
    font-size: 16px;
    color: var(--text-secondary);
}

.dia-profissionais {
    font-size: 14px;
    color: var(--text-muted);
}

.agenda-grade {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

.agenda-horarios-coluna {
    flex-shrink: 0;
    width: 80px;
    background: var(--bg-card);
}

.agenda-profissionais-colunas {
    display: flex;
    flex: 1;
    gap: 1px;
}

.agenda-coluna-profissional {
    flex: 1;
    min-width: 120px;
    background: var(--bg-card);
}

.agenda-cabecalho {
    padding: 10px 8px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.agenda-cabecalho.profissional-nome {
    font-size: 13px;
    color: var(--text-primary);
}

.avatar-prof {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.agenda-horario-label {
    padding: 8px 6px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenda-celula {
    min-height: 44px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 4px;
    position: relative;
}

.agenda-celula.disponivel {
    background: rgba(16, 185, 129, 0.08);
}

.agenda-celula.disponivel:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.02);
}

.agenda-celula.ocupado {
    background: rgba(239, 68, 68, 0.1);
    cursor: default;
}

.agenda-celula.lotado {
    background: rgba(107, 114, 128, 0.1);
    cursor: not-allowed;
}

.agenda-celula .ocupado-cliente {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.agenda-celula .disponivel-badge,
.agenda-celula .ocupado-badge,
.agenda-celula .lotado-badge {
    font-size: 14px;
}

/* ============================================
   VISÃO POR SEMANA
   ============================================ */

.agenda-semana-grade {
    display: flex;
    gap: 1px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.agenda-semana-horarios {
    flex-shrink: 0;
    width: 60px;
    background: var(--bg-card);
}

.agenda-semana-coluna {
    flex: 1;
    min-width: 80px;
    background: var(--bg-card);
}

.agenda-semana-coluna.coluna-hoje {
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
}

.semana-dia {
    flex-direction: column;
    padding: 8px 4px;
}

.semana-nome {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.semana-data {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.agenda-celula-semana {
    min-height: 32px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.agenda-celula-semana.disponivel {
    background: rgba(16, 185, 129, 0.08);
}

.agenda-celula-semana.disponivel:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.05);
}

.agenda-celula-semana.ocupado {
    background: rgba(239, 68, 68, 0.1);
    cursor: default;
}

.agenda-celula-semana.almoco {
    background: rgba(245, 158, 11, 0.1);
    cursor: default;
}

.agenda-celula-semana.fechado {
    background: rgba(107, 114, 128, 0.05);
    cursor: default;
}

.agenda-celula-semana.lotado {
    background: rgba(107, 114, 128, 0.1);
    cursor: not-allowed;
}

.status-indicator {
    font-size: 12px;
}

/* ============================================
   VISÃO POR MÊS
   ============================================ */

.agenda-mes-grade {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 12px;
    border: 1px solid var(--border-color);
}

.agenda-mes-cabecalho {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

.agenda-mes-dia {
    padding: 12px 8px;
    min-height: 60px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.agenda-mes-dia:hover {
    transform: scale(1.03);
    background: var(--border-color);
}

.agenda-mes-dia.dia-hoje {
    border: 2px solid var(--primary);
    background: rgba(102, 126, 234, 0.08);
}

.agenda-mes-dia.dia-fechado {
    opacity: 0.4;
    cursor: default;
}

.agenda-mes-dia.dia-fechado:hover {
    transform: none;
    background: var(--bg-hover);
}

.agenda-mes-dia.dia-com-agendamento {
    background: rgba(16, 185, 129, 0.06);
}

.dia-numero {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.dia-agendamentos {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.agendamento-count {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.dia-status {
    font-size: 14px;
}

.agenda-mes-vazio {
    min-height: 60px;
}

/* ============================================
   RESUMOS E ESTATÍSTICAS
   ============================================ */

.agenda-resumo-dia,
.agenda-resumo-mes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.resumo-item {
    text-align: center;
    padding: 8px;
}

.resumo-numero {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.resumo-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   ESTADO FECHADO
   ============================================ */

.agenda-fechado {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.agenda-fechado i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.agenda-fechado h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.agenda-fechado p {
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .agenda-navegacao {
        padding: 12px 16px;
        gap: 10px;
    }

    .agenda-navegacao .agenda-titulo {
        font-size: 14px;
        min-width: 120px;
    }

    .agenda-tabs {
        gap: 4px;
    }

    .agenda-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .agenda-horarios-coluna {
        width: 50px;
    }

    .agenda-coluna-profissional {
        min-width: 80px;
    }

    .agenda-cabecalho {
        font-size: 10px;
        padding: 6px 4px;
        min-height: 36px;
    }

    .agenda-cabecalho.profissional-nome {
        font-size: 11px;
    }

    .agenda-horario-label {
        font-size: 10px;
        padding: 4px 2px;
        min-height: 36px;
    }

    .agenda-celula {
        min-height: 36px;
        font-size: 10px;
        padding: 2px;
    }

    .agenda-celula .ocupado-cliente {
        font-size: 8px;
        max-width: 50px;
    }

    .avatar-prof {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .agenda-semana-horarios {
        width: 40px;
    }

    .agenda-semana-coluna {
        min-width: 50px;
    }

    .agenda-celula-semana {
        min-height: 24px;
        font-size: 9px;
    }

    .semana-data {
        font-size: 14px;
    }

    .semana-nome {
        font-size: 9px;
    }

    .agenda-mes-grade {
        padding: 8px;
        gap: 2px;
    }

    .agenda-mes-dia {
        min-height: 44px;
        padding: 8px 4px;
    }

    .dia-numero {
        font-size: 13px;
    }

    .agenda-resumo-dia,
    .agenda-resumo-mes {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .resumo-numero {
        font-size: 18px;
    }

    .agenda-legenda {
        gap: 10px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .agenda-legenda span {
        font-size: 11px;
    }

    .legenda-info {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .agenda-navegacao .agenda-titulo {
        font-size: 12px;
        min-width: 80px;
    }

    .btn-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .btn-nav.btn-hoje {
        padding: 0 12px;
        font-size: 11px;
        height: 32px;
    }

    .agenda-coluna-profissional {
        min-width: 60px;
    }

    .agenda-cabecalho.profissional-nome {
        font-size: 9px;
        flex-direction: column;
        gap: 2px;
    }

    .avatar-prof {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }

    .agenda-celula .ocupado-cliente {
        display: none;
    }

    .agenda-semana-coluna {
        min-width: 40px;
    }

    .agenda-mes-dia {
        min-height: 36px;
        padding: 4px 2px;
    }

    .dia-numero {
        font-size: 11px;
    }

    .agendamento-count {
        font-size: 8px;
        min-width: 14px;
        padding: 0 4px;
    }

    .agenda-tab {
        padding: 4px 10px;
        font-size: 10px;
    }
}

/* ============================================
   AGENDA COMPACTA - ESTILOS
   ============================================ */

.btn-nav-mini {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.btn-nav-mini:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-nav-mini.btn-hoje-mini {
    width: auto;
    padding: 0 10px;
    background: var(--gradient);
    color: white;
    border-color: transparent;
    font-size: 11px;
}

.btn-nav-mini.btn-hoje-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.agenda-tab-mini {
    padding: 3px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.agenda-tab-mini:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.agenda-tab-mini.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.agenda-tab-mini.active:hover {
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Responsivo */
@media (max-width: 768px) {
    .agenda-tab-mini {
        padding: 2px 6px;
        font-size: 10px;
    }

    .btn-nav-mini {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .btn-nav-mini.btn-hoje-mini {
        padding: 0 6px;
        font-size: 10px;
    }
}

/* ============================================
   AGENDA - ESTILO MICROSOFT OUTLOOK
   ============================================ */

/* HEADER */
.agenda-outlook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.agenda-titulo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.agenda-data-titulo {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.agenda-prof-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-hover);
    padding: 2px 12px;
    border-radius: 12px;
}

.agenda-acoes {
    display: flex;
    gap: 8px;
}

/* NAVEGAÇÃO */
.agenda-outlook-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-left {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-right {
    display: flex;
    gap: 4px;
}

.btn-nav-outlook {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-nav-outlook:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--text-primary);
}

.btn-nav-outlook.btn-hoje {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.btn-nav-outlook.btn-hoje:hover {
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

.agenda-view-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.agenda-view-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.agenda-view-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* TABELA PRINCIPAL */
.agenda-outlook-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 400px;
}

.agenda-outlook-table thead th {
    background: var(--bg-hover);
    padding: 8px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
}

.agenda-col-hora {
    min-width: 60px;
    width: 60px;
}

.agenda-col-prof {
    min-width: 80px;
    padding: 6px 4px !important;
}

.prof-avatar {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    margin-right: 4px;
}

.prof-nome {
    font-size: 11px;
    color: var(--text-secondary);
}

/* CÉLULAS */
.agenda-cell-hora {
    padding: 6px 8px;
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.agenda-cell-hora.almoco {
    color: var(--warning);
}

.agenda-cell-prof {
    padding: 4px 6px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 36px;
    vertical-align: middle;
}

.agenda-cell-prof.disponivel {
    background: rgba(16, 185, 129, 0.06);
}

.agenda-cell-prof.disponivel:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.agenda-cell-prof.ocupado {
    background: rgba(239, 68, 68, 0.08);
    cursor: default;
}

.agenda-cell-prof.lotado {
    background: rgba(107, 114, 128, 0.06);
    cursor: not-allowed;
}

.agenda-cell-prof.almoco {
    background: rgba(245, 158, 11, 0.08);
    cursor: default;
}

.status-icon {
    font-size: 14px;
}

.cliente-nome {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.disponivel-text,
.almoco-text,
.lotado-text {
    font-size: 9px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* RESUMO */
.agenda-outlook-resumo {
    display: flex;
    gap: 24px;
    padding: 10px 16px;
    background: var(--bg-hover);
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.agenda-outlook-resumo strong {
    color: var(--text-primary);
}

/* LEGENDA */
.agenda-outlook-legenda {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 4px;
    font-size: 12px;
    color: var(--text-muted);
    align-items: center;
}

.legenda-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 4px;
}

.legenda-dot.disponivel {
    background: #10b981;
}

.legenda-dot.ocupado {
    background: #ef4444;
}

.legenda-dot.almoco {
    background: #f59e0b;
}

.legenda-dot.fechado {
    background: #6b7280;
}

.legenda-dot.lotado {
    background: #9ca3af;
}

/* ============================================
   AGENDA - VISÃO SEMANA
   ============================================ */

.agenda-col-dia {
    padding: 6px 4px !important;
    text-align: center;
    min-width: 50px;
}

.agenda-col-dia .dia-semana {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.agenda-col-dia .dia-numero {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.agenda-col-dia.hoje {
    background: var(--primary) !important;
}

.agenda-col-dia.hoje .dia-semana,
.agenda-col-dia.hoje .dia-numero {
    color: white !important;
}

.agenda-cell-semana {
    padding: 4px 2px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    min-height: 30px;
    vertical-align: middle;
}

.agenda-cell-semana.disponivel {
    background: rgba(16, 185, 129, 0.06);
    cursor: pointer;
}

.agenda-cell-semana.disponivel:hover {
    background: rgba(16, 185, 129, 0.2);
}

.agenda-cell-semana.ocupado {
    background: rgba(239, 68, 68, 0.08);
    cursor: default;
}

.agenda-cell-semana.lotado {
    background: rgba(107, 114, 128, 0.06);
    cursor: not-allowed;
}

.agenda-cell-semana.almoco {
    background: rgba(245, 158, 11, 0.08);
    cursor: default;
}

.agenda-cell-semana.fechado {
    background: rgba(107, 114, 128, 0.04);
    cursor: default;
}

/* ============================================
   AGENDA - VISÃO MÊS
   ============================================ */

.agenda-mes-cabecalho {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-hover);
}

.agenda-mes-dia {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 50px;
    vertical-align: top;
    position: relative;
}

.agenda-mes-dia:hover {
    background: var(--bg-hover);
}

.agenda-mes-dia.hoje {
    background: var(--primary);
    color: white;
}

.agenda-mes-dia.hoje .dia-numero {
    color: white;
}

.agenda-mes-dia.fechado {
    opacity: 0.4;
    cursor: default;
}

.agenda-mes-dia.com-agendamento {
    background: rgba(16, 185, 129, 0.06);
}

.agenda-mes-dia .dia-numero {
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.agenda-mes-dia .dia-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    padding: 0 4px;
    text-align: center;
    margin-top: 2px;
}

.agenda-mes-dia.hoje .dia-badge {
    background: rgba(255, 255, 255, 0.3);
}

.agenda-mes-dia .dia-fechado-icon {
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.agenda-mes-vazio {
    border: 1px solid var(--border-color);
    min-height: 50px;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .agenda-titulo-area {
        gap: 8px;
    }

    .agenda-data-titulo {
        font-size: 14px;
    }

    .agenda-outlook-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-left,
    .nav-right {
        justify-content: center;
    }

    .agenda-col-prof {
        min-width: 50px;
    }

    .prof-nome {
        display: none;
    }

    .prof-avatar {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 9px;
        margin-right: 0;
    }

    .agenda-cell-prof {
        padding: 2px 3px;
        min-height: 28px;
    }

    .cliente-nome {
        max-width: 40px;
        font-size: 8px;
    }

    .agenda-cell-hora {
        font-size: 10px;
        padding: 4px 4px;
        min-width: 40px;
        width: 40px;
    }

    .agenda-col-dia {
        min-width: 35px;
        padding: 4px 2px !important;
    }

    .agenda-col-dia .dia-numero {
        font-size: 12px;
    }

    .agenda-col-dia .dia-semana {
        font-size: 8px;
    }

    .agenda-cell-semana {
        min-height: 22px;
        padding: 2px 1px;
        font-size: 10px;
    }

    .agenda-mes-dia {
        min-height: 36px;
        padding: 4px 2px;
    }

    .agenda-mes-dia .dia-numero {
        font-size: 11px;
    }

    .agenda-outlook-resumo {
        font-size: 11px;
        gap: 12px;
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .agenda-outlook-legenda {
        font-size: 10px;
        gap: 8px;
    }

    .agenda-view-btn {
        padding: 4px 10px;
        font-size: 10px;
    }

    .btn-nav-outlook {
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .agenda-outlook-table {
        font-size: 10px;
        min-width: 300px;
    }

    .agenda-col-hora {
        min-width: 30px;
        width: 30px;
    }

    .agenda-col-prof {
        min-width: 35px;
    }

    .status-icon {
        font-size: 10px;
    }

    .agenda-mes-dia {
        min-height: 28px;
    }

    .agenda-mes-dia .dia-numero {
        font-size: 9px;
    }

    .agenda-mes-dia .dia-badge {
        font-size: 7px;
        min-width: 14px;
    }
}

/* Animação para bolinhas ocupadas */
@keyframes pulseRed {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
    }
}

/* Estilo para a coluna de horários */
.horario-coluna {
    background: var(--bg-hover);
    font-weight: 700;
    border-right: 3px solid var(--border-color);
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 70px;
}

.horario-coluna.ativo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 16px rgba(102, 126, 234, 0.4);
    border-radius: 6px 0 0 6px;
}

.horario-coluna.almoco {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.horario-coluna .hora-texto {
    font-size: 13px;
    font-weight: 700;
}

.horario-coluna.ativo .hora-texto {
    font-size: 16px;
    font-weight: 800;
}

.horario-coluna .badge-agora {
    font-size: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 8px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
}

.horario-coluna .badge-almoco {
    font-size: 7px;
    color: #d97706;
    font-weight: 600;
}

/* Estilo para a tabela com sticky horário */
.tabela-agenda {
    overflow-x: auto;
    max-height: 450px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tabela-agenda table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    min-width: 500px;
}

.tabela-agenda thead th {
    padding: 8px 8px;
    background: var(--bg-hover);
    text-align: center;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 5;
    font-size: 10px;
    border-bottom: 2px solid var(--border-color);
}

.tabela-agenda tbody td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
    min-height: 38px;
}

/* ============================================
   ESTILOS PARA BOLINHA OCUPADA
   ============================================ */

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Bolinha ocupada - fica vermelha com animação */
.bolinha-ocupada {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: 3px solid #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6) !important;
    animation: pulseRed 1.5s infinite !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* Badge de ocupado */
.badge-ocupado {
    font-size: 6px;
    color: #ef4444;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    padding: 0px 6px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    margin-top: -1px;
    display: inline-block;
}

/* Bolinha disponível - verde */
.bolinha-disponivel {
    background: linear-gradient(135deg, #22c55e, #10b981) !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3) !important;
    cursor: pointer !important;
    animation: pulse-green 2s infinite !important;
}

/* Bolinha passou - cinza */
.bolinha-passou {
    background: #9ca3af !important;
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    filter: grayscale(1) !important;
}