﻿/* ============================================
   DESIGN SYSTEM FELIXOVERSE - TIME DIVIDER
   ============================================ */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Primarias */
    --felixo-purple: #C084FC;
    --felixo-purple-bright: #A855F7;

    /* Fundos */
    --zinc-950: rgb(9, 9, 11);
    --zinc-900: rgb(24, 24, 27);
    --zinc-800: rgb(39, 39, 42);

    /* Textos */
    --zinc-50: rgb(250, 250, 250);
    --zinc-300: rgb(212, 212, 216);
    --zinc-400: rgb(161, 161, 170);
    --zinc-500: rgb(113, 113, 122);

    /* Status */
    --cor-erro: #f87171;
    --cor-sucesso: #34d399;

    /* Sombras */
    --sombra: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --sombra-grande: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

    /* Glow */
    --felixo-glow-intensity: 1;
}

/* Selecao de texto */
::selection {
    background: rgba(168, 85, 247, 0.4);
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 74, 74, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(106, 106, 106, 0.9);
}

/* ============================================
   BODY & LAYOUT
   ============================================ */

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(to bottom, #000000, var(--zinc-950), #000000);
    min-height: 100vh;
    padding: 2rem 1rem;
    color: var(--zinc-50);
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ============================================
   PARTICULAS DE FUNDO
   ============================================ */

.background-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgb(233, 213, 255);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.8);
    filter: blur(0.5px);
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: var(--particle-opacity, 0.7);
    }
    90% {
        opacity: var(--particle-opacity, 0.7);
    }
    100% {
        transform: translateY(-150px);
        opacity: 0;
    }
}

/* ============================================
   TOGGLE DARK MODE
   ============================================ */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--zinc-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--sombra-grande);
    transition: all 0.3s ease;
    z-index: 1000;
    color: var(--zinc-50);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .theme-icon-light,
[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-icon-dark,
[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(180deg);
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */

[data-theme="light"] body {
    background: linear-gradient(to bottom, #ddd6e1, #d4cdd8, #ddd6e1);
    color: rgb(39, 39, 42);
}

[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgb(39, 39, 42);
}

[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card h2 {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .header h1 {
    color: #7c3aed;
    text-shadow: none;
    animation: none;
}

[data-theme="light"] .subtitle {
    color: rgb(82, 82, 91);
}

[data-theme="light"] label {
    color: rgb(63, 63, 70);
}

[data-theme="light"] .input {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgb(39, 39, 42);
}

[data-theme="light"] .input::placeholder {
    color: rgb(161, 161, 170);
}

[data-theme="light"] .input:focus {
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25),
                0 0 0 4px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.4);
}

[data-theme="light"] .hint {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .info-text,
[data-theme="light"] .steps-list li {
    color: rgb(82, 82, 91);
}

[data-theme="light"] .steps-list strong {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .benefit-item {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .benefit-item strong {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .benefit-item p {
    color: rgb(82, 82, 91);
}

[data-theme="light"] .benefits-panel {
    border-color: rgba(124, 58, 237, 0.2);
    animation: none;
}

[data-theme="light"] .carousel-btn {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgb(63, 63, 70);
}

[data-theme="light"] .carousel-indicator {
    background: rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

[data-theme="light"] .carousel-indicator.active {
    background: #7c3aed;
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .footer {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .footer a {
    color: #7c3aed;
}

[data-theme="light"] .btn-primary {
    background: rgb(63, 63, 70);
    color: white;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-primary:hover {
    background: rgb(39, 39, 42);
}

[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: rgb(39, 39, 42);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(0, 0, 0, 0.12);
    color: rgb(63, 63, 70);
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-secondary-outline {
    border-color: rgba(0, 0, 0, 0.1);
    color: rgb(82, 82, 91);
}

[data-theme="light"] .btn-secondary-outline:hover {
    background: rgba(0, 0, 0, 0.04);
    color: rgb(39, 39, 42);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .modal-content {
    background: rgba(240, 238, 242, 0.95);
    border-color: rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .modal-header {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .modal-header h3 {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .modal-footer {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .plano-item {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .plano-item:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .plano-nome {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .plano-detalhes,
[data-theme="light"] .plano-data {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .template-card {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .template-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .template-nome {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .template-descricao,
[data-theme="light"] .template-info {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .template-categoria {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .btn-usar-template {
    background: rgb(63, 63, 70);
    color: white;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-usar-template:hover {
    background: rgb(39, 39, 42);
}

[data-theme="light"] .alert-error {
    background: rgba(254, 226, 226, 0.6);
    color: #991b1b;
    border-color: rgba(254, 202, 202, 0.6);
}

[data-theme="light"] .alert-success {
    background: rgba(209, 250, 229, 0.6);
    color: #065f46;
    border-color: rgba(110, 231, 183, 0.4);
}

[data-theme="light"] .historico-item {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .historico-item:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .historico-detalhe {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .historico-detalhe strong {
    color: #7c3aed;
}

[data-theme="light"] .chart-title {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .legenda-item {
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .legenda-atividade {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .legenda-horario {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .divider-section {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .divider-section::before,
[data-theme="light"] .divider-section::after {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-icon-text {
    border-color: rgba(0, 0, 0, 0.08);
    color: rgb(82, 82, 91);
}

[data-theme="light"] .btn-icon-text:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
    color: #b91c1c;
}

[data-theme="light"] .btn-reutilizar {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
    color: #7c3aed;
}

[data-theme="light"] .btn-reutilizar:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .modal-close {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .particle {
    background: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .info-section h3 {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .form-divider {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .historico-timestamp,
[data-theme="light"] .historico-subtitle {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .historico-atividades-titulo {
    color: rgb(39, 39, 42);
}

[data-theme="light"] .historico-atividades {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .atividade-tag {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .sem-planos,
[data-theme="light"] .sem-historico {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .beneficio-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .template-intro {
    color: rgb(113, 113, 122);
}

[data-theme="light"] .btn-backup {
    background: rgba(255, 255, 255, 0.4);
    color: rgb(63, 63, 70);
    border-color: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .btn-backup:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .btn-icon {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgb(63, 63, 70);
}

[data-theme="light"] .btn-icon.btn-deletar {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

[data-theme="light"] .badge-python {
    background: rgba(55, 118, 171, 0.1);
}

[data-theme="light"] .badge-web {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .badge-chart {
    background: rgba(245, 158, 11, 0.1);
}

/* ============================================
   CABECALHO
   ============================================ */

.header {
    text-align: center;
    background: rgba(9, 9, 11, 0.5);
    padding: 3.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--felixo-purple);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.55),
                 0 0 44px rgba(168, 85, 247, 0.32);
    animation: title-glow-purple 3s ease-in-out infinite;
}

.subtitle {
    color: var(--zinc-400);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.625;
}

.badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.badge-python {
    background: rgba(55, 118, 171, 0.15);
    color: #60a5fa;
    border-color: rgba(55, 118, 171, 0.3);
}

.badge-web {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-chart {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: rgba(9, 9, 11, 0.5);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    transition: border-color 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zinc-50);
    margin-bottom: 1.5rem;
}

/* ============================================
   SECAO INFORMATIVA
   ============================================ */

.info-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--zinc-50);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.info-text {
    color: var(--zinc-300);
    line-height: 1.625;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.steps-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.steps-list li {
    margin-bottom: 0.75rem;
    line-height: 1.625;
    color: var(--zinc-300);
}

.steps-list strong {
    color: var(--zinc-50);
}

/* ============================================
   PAINEL DE BENEFICIOS & CARROSSEL
   ============================================ */

.benefits-panel {
    border: 1px solid rgba(168, 85, 247, 0.3);
    animation: card-glow-breathe 3s ease-in-out infinite;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    gap: var(--carousel-gap, 1rem);
    transition: transform 0.5s ease-in-out;
}

.carousel-track .benefit-item {
    flex: 0 0 calc((100% - var(--carousel-gap, 1rem)) / 2);
    min-width: auto;
    padding: 2rem 1rem;
    margin: 0;
}

.benefit-item {
    text-align: center;
    background: rgba(39, 39, 42, 0.3);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.benefit-item strong {
    display: block;
    color: var(--zinc-50);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.benefit-item p {
    color: var(--zinc-400);
    font-size: 0.875rem;
    line-height: 1.625;
    margin: 0;
}

/* Botoes do Carrossel */
.carousel-btn {
    background: var(--zinc-800);
    color: var(--zinc-50);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--zinc-900);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

/* Indicadores do Carrossel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zinc-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: var(--zinc-500);
}

.carousel-indicator.active {
    background: var(--felixo-purple);
    width: 24px;
    border-radius: 5px;
    border-color: rgba(168, 85, 247, 0.5);
}

/* ============================================
   FORMULARIO
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.form-divider {
    display: flex;
    align-items: center;
    padding-top: 2rem;
    color: var(--zinc-500);
    font-style: italic;
}

label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--zinc-300);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.input {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    background: rgba(39, 39, 42, 0.5);
    color: var(--zinc-50);
    outline: none;
}

.input::placeholder {
    color: var(--zinc-400);
}

.input:focus {
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.4),
                0 0 0 4px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.6);
}

.input-large {
    font-size: 0.875rem;
}

.hint {
    display: block;
    margin-top: 0.4rem;
    color: var(--zinc-500);
    font-size: 0.75rem;
    font-style: italic;
}

/* ============================================
   BOTOES
   ============================================ */

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: white;
    color: black;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--sombra);
}

.btn-primary:hover {
    background: rgb(244, 244, 245);
    transform: translateY(-2px);
    box-shadow: var(--sombra-grande);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--zinc-800);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgb(63, 63, 70);
    transform: translateY(-2px);
}

.btn-outline,
.btn-secondary-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary-outline {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--zinc-400);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--zinc-50);
    border-color: rgba(255, 255, 255, 0.2);
}

.plan-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.plan-actions .btn-outline {
    flex: 1 1 auto;
    min-width: 160px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* ============================================
   ALERTAS
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid;
}

.alert-error {
    background: rgba(127, 29, 29, 0.5);
    color: #fca5a5;
    border-color: rgba(153, 27, 27, 0.6);
}

.alert-success {
    background: rgba(6, 78, 59, 0.5);
    color: #6ee7b7;
    border-color: rgba(4, 120, 87, 0.6);
}

/* ============================================
   MODAIS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--zinc-950);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 1000px;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--zinc-50);
    font-size: 1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--zinc-500);
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close:hover {
    color: var(--cor-erro);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-footer button {
    margin: 0;
    width: auto;
    min-width: 120px;
}

/* ============================================
   LISTA DE PLANOS
   ============================================ */

.planos-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plano-item {
    background: rgba(39, 39, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.plano-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
    transform: translateY(-2px);
}

.plano-info {
    flex: 1;
}

.plano-nome {
    margin: 0 0 0.5rem 0;
    color: var(--zinc-50);
    font-size: 1rem;
    font-weight: 600;
}

.plano-detalhes {
    margin: 0.25rem 0;
    color: var(--zinc-400);
    font-size: 0.875rem;
}

.plano-data {
    margin: 0.25rem 0 0 0;
    color: var(--zinc-500);
    font-size: 0.75rem;
    font-style: italic;
}

.plano-acoes {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: var(--zinc-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zinc-50);
}

.btn-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon.btn-deletar {
    background: rgba(127, 29, 29, 0.5);
    border-color: rgba(153, 27, 27, 0.4);
}

.btn-icon.btn-deletar:hover {
    background: rgba(185, 28, 28, 0.7);
}

.sem-planos {
    text-align: center;
    color: var(--zinc-500);
    padding: 3rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   BACKUP ACTIONS
   ============================================ */

.backup-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-backup {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: rgba(39, 39, 42, 0.5);
    color: white;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-backup:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.btn-backup:active {
    transform: translateY(0);
}

.divider-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--zinc-500);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.divider-section::before,
.divider-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   TEMPLATES
   ============================================ */

.template-intro {
    text-align: center;
    color: var(--zinc-400);
    margin-bottom: 2rem;
    font-size: 0.875rem;
    line-height: 1.625;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.templates-grid::-webkit-scrollbar-track {
    background: transparent;
}

.templates-grid::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 4px;
}

.templates-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

.template-card {
    background: rgba(39, 39, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.template-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    transform: translateY(-3px);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.template-nome {
    margin: 0;
    color: var(--zinc-50);
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.template-categoria {
    background: rgba(168, 85, 247, 0.15);
    color: var(--felixo-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.template-descricao {
    color: var(--zinc-400);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.template-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--zinc-500);
}

.template-duracao,
.template-metodologia {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.template-beneficios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.beneficio-tag {
    background: rgba(6, 78, 59, 0.5);
    color: #6ee7b7;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(4, 120, 87, 0.4);
}

.btn-usar-template {
    background: white;
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    margin-top: auto;
}

.btn-usar-template:hover {
    background: rgb(244, 244, 245);
    transform: translateY(-2px);
}

/* ============================================
   GRAFICO
   ============================================ */

.chart-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--zinc-300);
    margin-bottom: 10px;
    margin-top: 5px;
}

.chart-wrapper {
    position: relative;
    height: 700px;
    width: 100%;
    margin: 1rem 0;
    padding: 10px 10px 30px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#grafico-relogio {
    max-height: 100%;
    max-width: 100%;
}

/* Legenda */
.legenda {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.legenda-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(39, 39, 42, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legenda-cor {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    margin-right: 0.75rem;
    box-shadow: var(--sombra);
}

.legenda-texto {
    flex: 1;
}

.legenda-atividade {
    font-weight: 600;
    color: var(--zinc-50);
    font-size: 0.875rem;
}

.legenda-horario {
    font-size: 0.75rem;
    color: var(--zinc-400);
}

/* ============================================
   HISTORICO DE PLANEJAMENTOS
   ============================================ */

#historico-container {
    margin-top: 2rem;
}

.historico-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.historico-header h2 {
    margin: 0;
}

.historico-subtitle {
    color: var(--zinc-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.historico-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.historico-item {
    background: rgba(39, 39, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.historico-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
    transform: translateY(-2px);
}

.historico-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.historico-info {
    flex: 1;
}

.historico-timestamp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--zinc-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.historico-detalhes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.historico-detalhe {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(9, 9, 11, 0.5);
    border-radius: 8px;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.historico-detalhe strong {
    color: var(--felixo-purple);
}

.historico-atividades {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.historico-atividades-titulo {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--zinc-50);
    font-size: 0.875rem;
}

.historico-atividades-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.atividade-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(168, 85, 247, 0.15);
    color: var(--felixo-purple);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.historico-acoes {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--zinc-300);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-icon-text:hover {
    background: rgba(127, 29, 29, 0.3);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
}

.btn-reutilizar {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--felixo-purple);
}

.btn-reutilizar:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
}

.sem-historico {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--zinc-500);
    font-size: 0.875rem;
}

/* ============================================
   RODAPE
   ============================================ */

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--zinc-500);
    font-size: 0.875rem;
}

.footer a {
    color: var(--felixo-purple);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--felixo-purple-bright);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

/* ============================================
   ANIMACOES
   ============================================ */

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

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

@keyframes title-glow-purple {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
    }
}

@keyframes card-glow-breathe {
    0%, 100% {
        box-shadow: 0 0 15px rgba(168, 85, 247, calc(0.15 * var(--felixo-glow-intensity, 1)));
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, calc(0.45 * var(--felixo-glow-intensity, 1)));
    }
}

@keyframes text-glow-breathe {
    0%, 100% {
        text-shadow: 0 0 5px rgba(168, 85, 247, 0.4),
                     0 0 30px rgba(168, 85, 247, 0.2);
    }
    50% {
        text-shadow: 0 0 10px rgba(168, 85, 247, 0.7),
                     0 0 50px rgba(168, 85, 247, 0.4);
    }
}

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

@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .header h1 {
        font-size: 2.25rem;
    }

    .card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .header {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-divider {
        padding: 0;
        justify-content: center;
    }

    .chart-wrapper {
        height: 450px;
        padding: 10px;
    }

    #grafico-relogio {
        max-height: 100%;
    }

    /* Carrossel mobile */
    .carousel-track .benefit-item {
        flex-basis: 100%;
        margin: 0;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    /* Theme toggle mobile */
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }

    /* Modais mobile */
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
    }

    .plano-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .plano-acoes {
        width: 100%;
        justify-content: flex-end;
    }

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

    /* Templates mobile */
    .templates-grid {
        grid-template-columns: 1fr;
        max-height: 70vh;
    }

    .template-card {
        padding: 1rem;
    }

    .template-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .template-categoria {
        align-self: flex-start;
    }

    /* Historico mobile */
    .historico-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .historico-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .historico-detalhes {
        grid-template-columns: 1fr;
    }

    .historico-acoes {
        width: 100%;
        justify-content: space-between;
    }

    .btn-reutilizar {
        flex: 1;
    }

    .historico-atividades-lista {
        gap: 0.4rem;
    }

    .atividade-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    /* Backup mobile */
    .backup-actions {
        flex-direction: column;
    }

    .btn-backup {
        min-width: 100%;
    }

    .plan-actions {
        gap: 0.5rem;
        justify-content: center;
    }

    .plan-actions .btn-outline {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: max(140px, calc(50% - 0.25rem));
        max-width: none;
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.875rem;
    }

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

    .plan-actions .btn-outline {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}
