/* ===== COMPONENTES REUTILIZÁVEIS ===== */

/* ===== STATS CARDS ===== */
.stats-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stats-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== COURSE CARDS ===== */
.course-card-professional {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0;
    height: 100%;
    min-height: 750px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.course-card-professional:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.course-card-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card-professional:hover::before {
    opacity: 1;
}

.course-card-despertar::before {
    background: linear-gradient(90deg, var(--accent-orange), #fb923c);
}

.course-card-arquiteto::before {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
}

.course-card-mestre::before {
    background: linear-gradient(90deg, var(--accent-purple), #c084fc);
}

.course-header {
    padding: 2.5rem 2rem 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.course-level-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border: 2px solid;
}

.course-card-despertar .course-level-badge {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.course-card-arquiteto .course-level-badge {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.course-card-mestre .course-level-badge {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.course-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.2;
}

/* ===== AUTH COMPONENTS ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.auth-card:hover {
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-logo i {
    color: var(--accent-blue);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== INPUT GROUPS ===== */
.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
}

.input-group-custom .form-control {
    padding-left: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--accent-blue);
}

/* ===== DASHBOARD SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 76px;
    left: 0;
    width: 260px;
    height: calc(100vh - 76px);
    background: var(--secondary-dark);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-right: 3px solid var(--accent-blue);
}

.sidebar-menu i {
    width: 20px;
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* ===== NAVBAR DASHBOARD ===== */
.navbar-dashboard {
    background: var(--secondary-dark) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: '3';
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* ===== DIVIDERS ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.divider span {
    padding: 0 1rem;
}

/* ===== COURSE SELECTION (REGISTER) ===== */
.course-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-option {
    position: relative;
}

.course-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.course-card {
    background: rgba(15, 23, 42, 0.4);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.course-card:hover {
    border-color: var(--accent-blue);
    background: rgba(15, 23, 42, 0.6);
}

.course-radio:checked + .course-card {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-progress {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: var(--error-color); }
.strength-medium { background: var(--warning-color); }
.strength-strong { background: var(--success-color); }

.strength-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== RESPONSIVE COMPONENTS ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .course-card-professional {
        min-height: auto;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
}