:root {
    --primary-color: #1e293b;  /* Deep Slate */
    --accent-color: #2563eb;   /* Vibrant Blue */
    --accent-hover: #1d4ed8;
    --brand-beige: #f1f5f9;    /* Lighter Gray for BG */
    --text-color: #0f172a;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-color: #f8fafc;       
    --bg-dark: #0f172a;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --header-bg: #ffffff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Increased height for larger logo */
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 80px; /* Bigger logo space */
}

.text-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1;
    text-decoration: none;
    user-select: none;
}

.logo-aprove {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    letter-spacing: 4px;
}

.logo-v {
    height: 2.2rem;
    margin: 0 4px;
}

.logo-direito {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 12px;
    margin-top: 5px;
    margin-left: 12px;
}

.sidebar-header .text-logo {
    transform: scale(0.7);
    transform-origin: left center;
    margin: -10px 0;
}

.header-buttons {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 75, 141, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: rgba(229, 225, 213, 0.1);
}

.btn-secondary {
    background-color: var(--brand-beige);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

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

.btn-gold {
    background-color: #ffd700;
    color: #000000;
    border: 2px solid #daa520;
    font-weight: 600;
}

.btn-gold:hover {
    background-color: #daa520;
    border-color: #b8860b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.4);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-large:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 225, 213, 0.2);
}

/* Hero */
.hero {
    background: radial-gradient(circle at center, #333 0%, var(--primary-color) 100%);
    padding: 120px 0;
    color: var(--brand-beige);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" fill-opacity="0.05"/></svg>');
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Phases */
.phases {
    padding: 100px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.phase-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.phase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
}

.phase-header {
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.phase-header h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.phase-header h3::before {
    content: '';
    display: block;
    width: 6px;
    height: 28px;
    background-color: var(--accent-color);
    border-radius: 6px;
}

.phase-list {
    list-style: none;
}

.phase-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.phase-list li:last-child {
    margin-bottom: 0;
}

.phase-list .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(209, 177, 92, 0.15);
    color: #b5912a;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.phase-list p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .header-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .header-buttons .btn {
        width: 100%;
    }

    .phase-header h3 {
        font-size: 1.3rem;
    }

    .filter-row {
        flex-direction: column;
        gap: 12px;
    }

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

/* Área de Treinamento - Grid System */
.training-section {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.training-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
}

.training-card.clickable {
    cursor: pointer;
    border: 2px solid transparent;
}

.training-card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.training-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.training-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.training-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.training-card p.subtext {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #94a3b8;
}

/* Filtros Avançados Dropdown Custom */
.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.filter-group {
    flex: 1;
    position: relative;
}

.filter-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.custom-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-search {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
}

.dropdown-search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.9rem;
}

.dropdown-options {
    padding: 5px 0;
}

.dropdown-option {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-option:hover {
    background-color: #f8fafc;
}

/* Histórico Radial / Checkbox Filters */
.history-filters {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
}
.plan-badge {
    font-size: 0.8rem;
    background-color: var(--brand-beige);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Global Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    max-width: 80%;
    font-family: 'Inter', sans-serif;
}

/* Dashboard Styles Reverted to local HTML files */

/* Utils for Filter Pages */
.page-header { 
    background: var(--white); 
    padding: 30px 40px; 
    border-bottom: 1px solid var(--border-color); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.back-link { 
    color: var(--text-light); 
    text-decoration: none; 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    font-weight: 500; 
    margin-bottom: 10px;
}

.back-link:hover { color: var(--accent-color); }

.main-container { 
    padding: 40px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

/* Toast System */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: 400px;
    padding: 16px 24px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    pointer-events: auto;
    animation: slideIn 0.3s ease;
    transition: all 0.3s ease;
}

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

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

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}
    .main-container {
        padding: 20px;
    }
    .auth-container {
        margin: 40px auto !important;
        padding: 24px !important;
        width: 95% !important;
    }
}
