        /* =========================================
           1. VARIÁVEIS E RESET (DESIGN SYSTEM)
           ========================================= */
        :root {
            /* Paleta de Cores */
            --color-primary: #0052CC;      /* Tech Blue */
            --color-secondary: #00E5FF;    /* Neon Teal */
            --color-bg: #F8FAFC;           /* Slate 50 */
            --color-surface: #FFFFFF;      /* White */
            --color-text-main: #0F172A;    /* Slate 900 */
            --color-text-muted: #64748B;   /* Slate 500 */
            --color-border: #E2E8F0;       /* Slate 200 */
            
            /* Gradientes */
            --gradient-tech: linear-gradient(135deg, #0F172A 0%, #0052CC 100%);
            --gradient-btn: linear-gradient(90deg, #0052CC 0%, #00bbd4 100%);
            
            /* Efeitos */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --glow-teal: 0 0 15px -3px rgba(0, 229, 255, 0.4);
            --glow-blue: 0 4px 20px -5px rgba(0, 82, 204, 0.2);
            --radius-md: 8px;
            --radius-lg: 16px;
            --radius-full: 9999px;
            
            /* Tipografia */
            --font-family: 'Inter', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--color-border); /* Cor de fundo entre as telas */
            color: var(--color-text-main);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        /* Utilitários Gerais */
        .container-section {
            margin-bottom: 80px; /* Espaço entre as demos */
            background-color: var(--color-bg);
            position: relative;
        }

        a { text-decoration: none; color: inherit; transition: 0.3s; }
        ul { list-style: none; }
        
        /* Botões */
        .btn {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            padding: 12px 24px;
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: 0.875rem;
            cursor: pointer;
            border: none;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: var(--gradient-btn);
            color: white;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .btn-primary:hover {
            box-shadow: var(--glow-teal);
            transform: translateY(-1px);
        }

        .btn-outline {
            border: 1px solid var(--color-border);
            background: transparent;
            color: var(--color-text-muted);
        }
        
        .btn-outline:hover {
            background: var(--color-bg);
            color: var(--color-primary);
        }

        /* Inputs Minimalistas */
        .input-group {
            margin-bottom: 1.5rem;
        }
        
        .input-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--color-text-main);
            margin-bottom: 0.5rem;
        }

        .input-minimal {
            width: 100%;
            padding: 12px 4px;
            background: transparent;
            border: none;
            border-bottom: 2px solid var(--color-border);
            font-size: 1rem;
            color: var(--color-text-main);
            outline: none;
            transition: border-color 0.3s;
        }

        .input-minimal:focus {
            border-bottom-color: var(--color-secondary);
        }

        /* Ícones SVG padrão */
        .icon {
            width: 24px;
            height: 24px;
            stroke-width: 1.5;
        }

        /* =========================================
           2. TELA DE LOGIN
           ========================================= */
        .login-screen {
            display: flex;
            min-height: 100vh;
            background: var(--color-surface);
        }

        .login-brand {
            display: none; /* Mobile first */
            width: 50%;
            background: var(--gradient-tech);
            position: relative;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .login-brand::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.2), transparent 70%);
        }

        .brand-text h1 {
            font-size: 4rem;
            color: white;
            margin-bottom: 1rem;
        }

        .brand-text .highlight {
            color: var(--color-secondary);
            text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
        }

        .brand-text p {
            color: var(--color-secondary);
            letter-spacing: 0.2em;
            text-transform: uppercase;
            font-size: 0.9rem;
        }

        .login-form-container {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .login-box {
            width: 100%;
            max-width: 400px;
        }

        .biometrics {
            margin-top: 2rem;
            text-align: center;
        }
        
        .biometrics svg {
            color: var(--color-text-muted);
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .biometrics svg:hover {
            color: var(--color-primary);
        }

        @media (min-width: 1024px) {
            .login-brand { display: flex; }
            .login-form-container { width: 50%; }
        }

        /* =========================================
           3. DASHBOARD
           ========================================= */
        .dashboard-screen {
            min-height: 100vh;
            background-color: var(--color-bg);
        }

        /* Navbar */
        .navbar {
            height: 64px;
            background: var(--color-surface);
            border-bottom: 1px solid var(--color-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 2rem;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo-small {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .search-bar {
            flex: 1;
            max-width: 500px;
            margin: 0 2rem;
            position: relative;
            display: none;
        }

        .search-bar input {
            width: 100%;
            padding: 10px 10px 10px 40px;
            border-radius: var(--radius-md);
            border: none;
            background: var(--color-bg);
            font-size: 0.875rem;
        }

        .search-icon {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--color-text-muted);
            width: 18px;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(to top right, var(--color-primary), var(--color-secondary));
            padding: 2px;
        }
        
        .avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid var(--color-surface);
            display: block;
        }

        /* Layout Principal */
        .layout {
            display: flex;
            height: calc(100vh - 64px);
        }

        /* Sidebar */
        .sidebar {
            width: 250px;
            background: var(--color-surface);
            border-right: 1px solid var(--color-border);
            padding-top: 1.5rem;
            display: none;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 24px;
            color: var(--color-text-muted);
            font-weight: 500;
            transition: 0.3s;
        }

        .nav-item:hover {
            color: var(--color-primary);
            background: var(--color-bg);
        }

        .nav-item.active {
            color: var(--color-primary);
            background: #F1F5F9;
            border-right: 3px solid var(--color-secondary);
        }

        /* Conteúdo Main */
        .main-content {
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
        }

        /* Cards e Grids */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .card {
            background: var(--color-surface);
            padding: 1.5rem;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            border: 1px solid transparent;
            transition: 0.3s;
        }

        .card:hover {
            box-shadow: var(--glow-blue);
            border-color: rgba(0, 82, 204, 0.1);
        }

        .kpi-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
            font-size: 0.8rem;
            text-transform: uppercase;
            color: var(--color-text-muted);
            letter-spacing: 0.05em;
        }

        .kpi-value {
            font-size: 2.25rem;
            font-weight: 700;
            color: var(--color-text-main);
        }
        
        .kpi-value.blue { color: var(--color-primary); }

        .kpi-trend {
            font-size: 0.875rem;
            color: #10B981; /* Verde esmeralda */
            font-weight: 600;
            margin-left: 0.5rem;
        }

        /* Gráfico e Tarefas */
        .content-split {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .chart-placeholder {
            height: 200px;
            width: 100%;
            background: linear-gradient(180deg, rgba(0,229,255,0.05) 0%, rgba(255,255,255,0) 80%);
            position: relative;
            border-radius: var(--radius-md);
            overflow: hidden;
            margin-top: 1rem;
        }
        
        .chart-line {
            position: absolute;
            height: 4px;
            background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
            box-shadow: 0 0 10px var(--color-secondary);
            filter: blur(1px);
        }

        .task-list li {
            display: flex;
            align-items: center;
            padding: 12px;
            margin-bottom: 8px;
            background: var(--color-bg);
            border-radius: var(--radius-md);
            cursor: pointer;
        }
        
        .task-list li:hover {
            background: #EFF6FF; /* Azul muito claro */
        }
        
        .task-list input[type="checkbox"] {
            margin-right: 12px;
            accent-color: var(--color-secondary);
            transform: scale(1.2);
        }

        @media (min-width: 768px) {
            .search-bar { display: block; }
            .sidebar { display: block; }
            .content-split { grid-template-columns: 2fr 1fr; }
        }

        /* =========================================
           4. MODAL SLIDE-OVER
           ========================================= */
        .modal-screen {
            height: 100vh;
            background: #E2E8F0;
            position: relative;
            overflow: hidden;
        }

        .overlay {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(2px);
        }

        .slide-over {
            position: absolute;
            top: 0; right: 0; bottom: 0;
            width: 100%;
            max-width: 480px;
            background: var(--color-surface);
            box-shadow: -10px 0 25px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            padding: 2rem;
            animation: slideIn 0.5s ease-out;
        }

        @keyframes slideIn {
            from { transform: translateX(100%); }
            to { transform: translateX(0); }
        }

        .stepper {
            display: flex;
            align-items: center;
            margin: 2rem 0;
        }

        .step-circle {
            width: 40px; height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

        .step-active {
            border: 2px solid var(--color-primary);
            color: var(--color-primary);
            box-shadow: 0 0 10px rgba(0, 82, 204, 0.2);
        }

        .step-inactive {
            border: 2px solid var(--color-border);
            color: var(--color-text-muted);
        }

        .step-line {
            flex: 1;
            height: 2px;
            background: var(--color-border);
            margin: 0 1rem;
        }

        .slide-footer {
            margin-top: auto;
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--color-border);
        }

        /* Range Slider Customizado */
        input[type=range] {
            width: 100%;
            cursor: pointer;
            accent-color: var(--color-secondary);
        }
        .lista-agendamentos{
            width: 40%;
            height: 40vh;
            font-size: 0.9rem; color: gray;
            border-bottom: 1px solid #eee; padding: 10px 0;
        }

        /* Labels de Demonstração */
        .demo-label {
            position: absolute;
            top: 0; left: 0;
            background: var(--color-secondary);
            color: var(--color-text-main);
            font-size: 0.7rem;
            font-weight: 700;
            padding: 4px 8px;
            z-index: 50;
        }



        .card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: auto; /* Permite que o card cresça com o conteúdo */
    overflow: hidden;
}

.lista-agendamentos {
    max-height: 400px; /* Adiciona scroll interno se houver muitos agendamentos */
    overflow-y: auto;
    padding-right: 10px;
}