/* css/dashboard.css */
html, body {
    background-color: #f8fafc;
    background-image: 
        linear-gradient(#f1f5f9 1px, transparent 1px),
        linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
    background-size: 20px 20px;
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden;
}

.trial-banner { display:flex; align-items:center; gap:14px; padding:14px 18px; margin-bottom:22px; border:1px solid #fde68a; border-radius:12px; background:linear-gradient(90deg,#fffbeb,#fff7ed); color:#78350f; box-shadow:0 6px 20px rgba(146,64,14,.08); }
.trial-banner.hidden { display:none; }
.trial-banner > i { font-size:28px; color:#d97706; }
.trial-banner div { display:flex; flex-direction:column; gap:3px; flex:1; }
.trial-banner span { font-size:13px; color:#92400e; }
.trial-banner button { border:0; border-radius:8px; padding:10px 14px; background:#751537; color:#fff; font-weight:700; cursor:pointer; }
.dash-card.project-locked { opacity:.72; border-style:dashed; background:#f8fafc; cursor:not-allowed !important; }
.project-retention { margin-top:10px; padding:8px 10px; border-radius:7px; background:#fff1f2; color:#9f1239; font-size:11px; font-weight:700; }

/* --- NAVBAR --- */
.dash-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    font-size: 16px;
}

.dash-nav-center {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-link.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
}

.dash-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #64748b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-email-text {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.btn-icon-only {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-icon-only:hover {
    color: #ef4444;
}

/* --- CONTAINER E LAYOUT --- */
.dash-container {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 5%;
    flex: 1;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-titles h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.header-titles p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.btn-dash-primary {
    background: #0f172a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.2);
}

.btn-dash-primary:hover:not(:disabled) {
    background: #1e293b;
    transform: translateY(-2px);
}

.btn-dash-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

/* Grid do Layout Principal */
.dash-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* --- COLUNA ESQUERDA (PROJETOS) --- */
.section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-left h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.count-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 12px 8px 35px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    width: 200px;
    outline: none;
    color: #475569;
}

.search-box i {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    font-size: 14px;
}

.sort-dropdown {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-card-empty {
    grid-column: span 2;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

.project-card-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #cbd5e1;
}

/* --- ESTILO DO CARD DO PROJETO (NOVO) --- */
.dash-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.project-card-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-icon {
    width: 40px;
    height: 40px;
    background: #f0f9ff;
    color: #0ea5e9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.project-info h3 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.project-info p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
}

.project-card-actions {
    display: flex;
    gap: 10px;
}

.btn-card-action {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-card-action.copy { color: #3b82f6; }
.btn-card-action.copy:hover { color: #2563eb; }
.btn-card-action.delete { color: #ef4444; }
.btn-card-action.delete:hover { color: #dc2626; }


/* --- COLUNA DIREITA (SIDEBAR) --- */
.plan-card-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.plan-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 20px;
}

.plan-title-area h2 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.badge-free {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
}

.badge-premium {
    display: inline-block;
    background: #751537;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
}

.plan-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 15px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
}

.validity-text {
    margin: 0;
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
}

.plan-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-benefits li {
    font-size: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-benefits li i {
    color: #10b981;
    font-size: 14px;
}

.plan-benefits li.locked {
    color: #94a3b8;
}

.plan-benefits li.locked i {
    color: #cbd5e1;
}

.btn-dash-premium {
    width: 100%;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-dash-premium:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-outline-wide {
    width: 100%;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-outline-wide:hover {
    background: #f8fafc;
    color: #0f172a;
}

.course-card {
    text-align: left;
    background: #ffffff;
}

.course-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.course-card h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #0f172a;
}

.course-card p {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
}

.learn-more-link {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}

.learn-more-link:hover {
    color: #2563eb;
}

.hidden {
    display: none !important;
}

/* --- ESTILOS DO FOOTER --- */
.dash-footer {
    padding: 20px 5%;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.copyright {
    color: #64748b;
    font-size: 12px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-link {
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
}

.legal-link:hover {
    color: #0f172a;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .dash-layout {
        grid-template-columns: 1fr;
    }
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .section-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* ==========================================
   MODAL DE BENEFÍCIOS (UPSELL / PREMIUM)
   (MANTIDO INTACTO DO SEU CÓDIGO ANTERIOR)
   ========================================== */
.benefits-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.75);
    display: flex; align-items: center; justify-content: center;
    z-index: 999999; backdrop-filter: blur(4px); padding: 20px;
}
.benefits-container {
    background: #ffffff; width: 100%; max-width: 860px; border-radius: 20px;
    padding: 40px; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    font-family: 'Segoe UI', Arial, sans-serif; display: flex; flex-direction: column;
}
.benefits-close-btn {
    position: absolute; top: 20px; right: 20px; background: none; border: none;
    font-size: 24px; color: #64748b; cursor: pointer; padding: 5px; transition: 0.2s;
}
.benefits-close-btn:hover { color: #0f172a; }
.benefits-columns-wrapper { display: flex; gap: 40px; flex-wrap: wrap; }
.benefits-col { flex: 1; min-width: 320px; display: flex; flex-direction: column; }
.benefits-sparkle-icon { font-size: 24px; margin-bottom: 10px; color: #fbbf24; }
.benefits-title { font-size: 36px; font-weight: 800; color: #0f172a; line-height: 1.2; margin: 0 0 15px 0; }
.benefits-title .highlight-free { color: #4f46e5; }
.benefits-title .highlight-pro { color: #059669; }
.benefits-subtitle { color: #475569; font-size: 15px; margin-bottom: 35px; line-height: 1.5; }
.benefits-features-list { display: flex; flex-direction: column; gap: 24px; }
.benefits-feature-item { display: flex; align-items: center; gap: 15px; }
.benefits-feature-icon { width: 50px; height: 50px; border-radius: 50%; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.benefits-feature-icon.pro-bg { background: #f8fafc; }
.benefits-feature-text { flex: 1; }
.benefits-feature-title { font-weight: 700; color: #1e293b; font-size: 14px; }
.benefits-feature-desc { color: #64748b; font-size: 12px; }
.benefits-check-free { color: #10b981; font-size: 18px; background: #d1fae5; border-radius: 50%; padding: 2px; display: flex; }
.benefits-check-pro { color: #059669; font-size: 18px; }
.benefits-col-right { gap: 15px; }
.benefits-hero-card { border-radius: 16px; padding: 20px; text-align: center; height: 220px; display: flex; align-items: center; justify-content: center; }
.benefits-hero-card.free { background: linear-gradient(135deg, #f5f3ff 0%, #e0e7ff 100%); }
.benefits-hero-card.pro { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }
.benefits-hero-icon { font-size: 120px; }
.benefits-hero-icon.free { color: #6d28d9; filter: drop-shadow(0 10px 15px rgba(109, 40, 217, 0.3)); }
.benefits-hero-icon.pro { color: #059669; filter: drop-shadow(0 10px 15px rgba(5, 150, 105, 0.3)); }
.benefits-info-card { background: #f8fafc; border-radius: 16px; padding: 25px 20px 20px 20px; position: relative; border: 1px solid #e2e8f0; text-align: center; }
.benefits-info-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); color: white; font-size: 11px; font-weight: bold; padding: 5px 16px; border-radius: 20px; white-space: nowrap; }
.benefits-info-badge.free { background: #4f46e5; }
.benefits-info-badge.pro { background: #059669; }
.benefits-info-content { display: flex; justify-content: space-between; align-items: center; }
.benefits-info-half { flex: 1; }
.benefits-info-label { font-size: 13px; color: #64748b; margin-bottom: 5px; }
.benefits-info-label.bold { font-weight: 700; color: #1e293b; }
.benefits-info-value { font-size: 32px; font-weight: 900; }
.benefits-info-value.free { color: #3730a3; }
.benefits-info-value.pro { font-size: 26px; color: #047857; }
.benefits-info-subtext { font-size: 11px; color: #64748b; }
.benefits-info-subtext.pro { color: #059669; font-weight: bold; }
.benefits-info-divider { width: 1px; height: 50px; background: #e2e8f0; }
.benefits-testimonial-card { background: #f8fafc; border-radius: 16px; padding: 20px; border: 1px solid #e2e8f0; }
.benefits-testimonial-title { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 12px; }
.benefits-avatars { display: flex; margin-left: 10px; padding-top: 5px; }
.benefits-avatar { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; }
.benefits-stars { color: #fbbf24; font-size: 16px; margin-bottom: 8px; }
.benefits-quote { font-size: 12px; color: #475569; font-style: italic; line-height: 1.4; }
.benefits-author { font-size: 11px; font-weight: 700; color: #1e293b; margin-top: 8px; }
.benefits-author span { font-weight: normal; color: #64748b; }
.benefits-footer { margin-top: 35px; text-align: center; width: 100%; }
.benefits-btn { color: white; border: none; width: 100%; padding: 18px; border-radius: 12px; font-size: 16px; font-weight: 800; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: all 0.2s; }
.benefits-btn.free { background: #2e1065; }
.benefits-btn.free:hover { background: #1e1b4b; }
.benefits-btn.pro { background: #1F5568; }
.benefits-btn.pro:hover { background: #153e4d; }
.benefits-secure-info { margin-top: 15px; font-size: 12px; color: #64748b; display: flex; align-items: center; justify-content: center; gap: 6px; }
.benefits-dismiss-btn { margin-top: 20px; background: none; border: none; font-size: 13px; color: #94a3b8; font-weight: 600; cursor: pointer; transition: 0.2s; }
.benefits-dismiss-btn:hover { color: #475569; }
