/* AD ACADEMY - NEW DASHBOARD DESIGN SYSTEM */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body.dashboard-body {
    background-color: #0b1120; /* Fundo principal escuro da imagem */
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* HEADER */
.top-header {
    background-color: #ffffff;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

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

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link.active {
    color: #3b82f6;
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3b82f6;
    border-radius: 2px;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #e0f2fe;
    color: #0ea5e9;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: 0.2s;
}

.nav-icon-link:hover {
    background-color: #bae6fd;
}

.nav-btn-light {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.2s;
}

.nav-btn-light:hover {
    background-color: #e2e8f0;
}

.right-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid #e2e8f0;
}

.user-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.status-label {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.status-email {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 700;
}

.header-avatar {
    width: 42px;
    height: 42px;
    background-color: #0f172a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.header-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(15,23,42,0.2);
}

.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: #ffffff;
    width: 260px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.user-dropdown.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.dropdown-header {
    padding: 1.2rem 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
}

.dropdown-label {
    font-size: 0.7rem;
    color: #3b82f6;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.dropdown-email {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background-color: #f1f5f9;
    width: 100%;
}

.dropdown-item {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.dropdown-item i {
    font-size: 1.2rem;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.dropdown-item.logout {
    color: #ef4444;
    font-weight: 600;
}

.dropdown-item.logout:hover {
    background-color: #fef2f2;
}

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

.nav-btn-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    transition: 0.3s;
}

.nav-btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #0f172a;
}

/* MAIN CONTENT */
.main-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* PROFILE CARD */
.profile-card {
    background: #172033;
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    z-index: 2;
}

.big-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    border: 4px solid #172033;
    box-shadow: 0 0 0 3px #0ea5e9;
    position: relative;
}

.online-indicator {
    position: absolute;
    bottom: 5px;
    right: 15px;
    width: 24px;
    height: 24px;
    background-color: #f59e0b; /* Amarelo/Laranja status */
    border-radius: 50%;
    border: 4px solid #172033;
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.profile-detail {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.profile-detail i {
    color: #0ea5e9;
    font-size: 1.2rem;
}

.profile-right {
    z-index: 2;
    position: relative;
}

.plan-box {
    display: flex;
    align-items: center;
    background: rgba(11, 17, 32, 0.6);
    padding: 1.8rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.plan-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
}

.plan-col h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.plan-col span {
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 1px;
    font-weight: 700;
}

.plan-divider {
    width: 1px;
    height: 50px;
    background-color: rgba(255,255,255,0.1);
    margin: 0 0.5rem;
}

.confetti-icon {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #1e293b;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ACHIEVEMENTS SECTION */
.achievements-section {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #f59e0b;
    font-size: 1.4rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background-color: #121b2b;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.03);
    transition: 0.3s;
    height: 100%;
}

.achievement-card.active {
    background: linear-gradient(180deg, rgba(14,165,233,0.08) 0%, #121b2b 100%);
    border-color: rgba(14,165,233,0.3);
}

.ach-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.ach-icon.gray {
    filter: grayscale(100%) opacity(0.3);
}

.achievement-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #f8fafc;
    font-weight: 800;
}

.achievement-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.ach-badge {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* BOTTOM GRID: PRODUTOS & FEEDBACK */
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.bottom-section {
    display: flex;
    flex-direction: column;
}

.product-card, .feedback-card {
    background-color: #121b2b;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card {
    align-items: center;
    text-align: center;
}

.product-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.product-card h4 {
    font-size: 1.4rem;
    color: #f8fafc;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.product-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.btn-gradient {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: #fff;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.feedback-desc {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.rating-box {
    background-color: #0b1120;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.rating-box i {
    font-size: 2rem;
    color: #334155;
    cursor: pointer;
    transition: 0.2s;
}

.rating-box i:hover, .rating-box i.active {
    color: #f59e0b;
}

.feedback-textarea {
    background-color: #0b1120;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.2rem;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 1.5rem;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.feedback-textarea::placeholder {
    color: #475569;
}

/* RESPONSIVO */
@media(max-width: 992px) {
    .top-header { height: auto; }
    .header-container { flex-wrap: wrap; gap: 0.75rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .center-nav { order: 3; width: 100%; overflow-x: auto; }
    .user-status { display: none; }
    .mobile-menu-toggle { display: none; }
    
    .profile-card { 
        flex-direction: column; 
        text-align: center; 
        gap: 3rem; 
        padding: 3rem 1.5rem; 
    }
    
    .profile-left { 
        flex-direction: column; 
        gap: 1.5rem; 
    }
    
    .profile-info h1 { font-size: 2rem; }
    .profile-detail { justify-content: center; }

    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}
