/* ===== DIAGNOSTIC PAGE STYLES ===== */

/* Main Container */
.diagnostic-main {
    min-height: 100vh;
    padding: 100px 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== LOAD DIAGNOSTIC BUTTON ===== */
.btn-load-diagnostic {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-diagnostic:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-load-diagnostic i, .btn-load-diagnostic svg {
    width: 16px;
    height: 16px;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-header h3 i, .modal-header h3 svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* File Drop Zone */
.file-drop-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-drop-zone i, .file-drop-zone svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.file-drop-zone span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.file-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Recent Files */
.recent-files {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.recent-files h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.recent-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recent-file-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.recent-file-item .file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recent-file-item .file-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.recent-file-item .file-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== INPUT MODE TOGGLE ===== */
.input-mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.input-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-mode-btn:hover {
    color: var(--text-primary);
}

.input-mode-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.input-mode-btn i, .input-mode-btn svg {
    width: 18px;
    height: 18px;
}

/* Input Mode Content */
.input-mode-content {
    display: none;
}

.input-mode-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Analyze Website Button */
.btn-analyze-website {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-analyze-website:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-analyze-website:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-analyze-website i, .btn-analyze-website svg {
    width: 18px;
    height: 18px;
}

/* Website Analysis Result */
.website-analysis-result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--success);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.website-analysis-result .analysis-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--success);
    font-weight: 600;
}

.website-analysis-result .analysis-header i,
.website-analysis-result .analysis-header svg {
    width: 18px;
    height: 18px;
}

.website-analysis-result .analysis-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .website-analysis-result .analysis-content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .analysis-scores-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    .core-vitals-grid {
        grid-template-columns: 1fr !important;
    }

    .diagnostics-grid {
        grid-template-columns: 1fr !important;
    }

    .analysis-tabs {
        flex-direction: column;
        gap: 0;
    }

    .analysis-tab {
        justify-content: center;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 480px) {
    .diagnostic-main {
        padding: 100px 1rem 2rem;
    }

    .website-analysis-result {
        padding: 1rem;
    }

    .vital-item,
    .diagnostic-item,
    .opportunity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .vital-item {
        align-items: center;
    }
}

/* Accordion Styles */
.analysis-accordion {
    margin-top: 1rem;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover {
    background: var(--bg-hover);
}

.accordion-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.accordion-header h4 i,
.accordion-header h4 svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.accordion-toggle i,
.accordion-toggle svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.25rem;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding: 1rem 1.25rem 1.5rem;
}

.accordion-body {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.analysis-device-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.analysis-device-header i,
.analysis-device-header svg {
    width: 20px;
    height: 20px;
}

.analysis-scores-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.analysis-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.analysis-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analysis-section h4 i,
.analysis-section h4 svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.core-vitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.vital-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.vital-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.vital-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.opportunities-list,
.diagnostics-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.opportunity-item,
.diagnostic-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.opportunity-item i,
.opportunity-item svg,
.diagnostic-item i,
.diagnostic-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    margin-top: 1px;
    flex-shrink: 0;
}

.analysis-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.analysis-item .analysis-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analysis-item .analysis-value {
    font-weight: 500;
    color: var(--text-primary);
}

.analysis-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-score-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.analysis-score-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.analysis-score-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 40px;
}

.analysis-grade {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* Analysis Tabs */
.analysis-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.analysis-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analysis-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.analysis-tab i,
.analysis-tab svg {
    width: 16px;
    height: 16px;
}

.analysis-content {
    display: none;
}

.analysis-content.active {
    display: block;
}

/* Enhanced Opportunities */
.opportunity-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.opportunity-title {
    font-weight: 600;
    color: var(--text-primary);
}

.opportunity-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.opportunity-value {
    font-size: 0.75rem;
    color: var(--warning);
    font-weight: 500;
}

/* Diagnostics Grid */
.diagnostics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.diagnostic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.diagnostic-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.diagnostic-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== WIZARD PROGRESS ===== */
.wizard-progress {
    margin-bottom: 3rem;
}

.progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.5s var(--ease-out-expo);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.progress-step .step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.progress-step .step-icon i,
.progress-step .step-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.progress-step.active .step-icon i,
.progress-step.active .step-icon svg {
    color: white;
}

.progress-step.completed .step-icon {
    border-color: var(--success);
    background: var(--success);
}

.progress-step.completed .step-icon i,
.progress-step.completed .step-icon svg {
    color: white;
}

.progress-step span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-step.active span,
.progress-step.completed span {
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .progress-step span {
        display: none;
    }
    
    .progress-step .step-icon {
        width: 36px;
        height: 36px;
    }
    
    .progress-step .step-icon i,
    .progress-step .step-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ===== WIZARD CONTAINER ===== */
.wizard-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.wizard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

@media (max-width: 640px) {
    .wizard-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

/* ===== WIZARD STEPS ===== */
.wizard-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.wizard-step.active {
    display: block;
}

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

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-badge i, .step-badge svg {
    width: 14px;
    height: 14px;
}

.step-badge.badge-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== FORM STYLES ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.0rem;
}

.form-group-full {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-full {
        grid-column: span 1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-label i, .form-label svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input-large {
    font-size: 1.25rem;
    padding: 1rem 1.25rem;
    text-align: center;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.1em;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Input with prefix */
.input-prefix-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-prefix-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-prefix {
    padding: 0.875rem 0.75rem;
    background: var(--bg-glass);
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
    border-right: 1px solid var(--border);
}

.form-input.with-prefix {
    border: none;
    border-radius: 0;
    background: transparent;
}

.form-input.with-prefix:focus {
    box-shadow: none;
}

/* Company Preview */
.company-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    animation: slideUp 0.5s ease;
}

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

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 1rem;
}

.preview-header i, .preview-header svg {
    width: 20px;
    height: 20px;
}

.preview-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.preview-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tool-option {
    cursor: pointer;
}

.tool-option input {
    display: none;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tool-card i, .tool-card svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tool-option:hover .tool-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.tool-option input:checked + .tool-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.tool-option input:checked + .tool-card i,
.tool-option input:checked + .tool-card svg {
    color: var(--primary);
}

/* ===== DIAGNOSTIC QUESTIONS ===== */
.diagnostic-questions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--primary);
}

.question-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.question-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    min-width: 50px;
}

.question-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.question-card .form-textarea {
    background: var(--bg-card);
}

@media (max-width: 640px) {
    .question-card {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .question-number {
        font-size: 1.5rem;
    }
}

/* ===== AI ANALYSIS ===== */
.ai-analysis-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.ai-visual {
    position: relative;
    width: 200px;
    height: 200px;
}

.ai-brain {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.brain-ring-1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.brain-ring-2 {
    width: 75%;
    height: 75%;
    animation-delay: 0.3s;
}

.brain-ring-3 {
    width: 50%;
    height: 50%;
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.brain-core {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 60px rgba(99, 102, 241, 0.8);
    }
}

.brain-core i, .brain-core svg {
    width: 40px;
    height: 40px;
    color: white;
}

.ai-particles {
    position: absolute;
    inset: 0;
}

.ai-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: float-particle 3s ease-in-out infinite;
}

.ai-particles span:nth-child(1) { top: 10%; left: 50%; animation-delay: 0s; }
.ai-particles span:nth-child(2) { top: 30%; left: 10%; animation-delay: 0.5s; }
.ai-particles span:nth-child(3) { top: 30%; left: 90%; animation-delay: 1s; }
.ai-particles span:nth-child(4) { top: 70%; left: 10%; animation-delay: 1.5s; }
.ai-particles span:nth-child(5) { top: 70%; left: 90%; animation-delay: 2s; }
.ai-particles span:nth-child(6) { top: 90%; left: 50%; animation-delay: 2.5s; }

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

.ai-status {
    text-align: center;
}

.ai-status h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.ai-status p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ai-progress {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.ai-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.ai-steps {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.ai-step.active {
    opacity: 1;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.ai-step.completed {
    opacity: 1;
}

.ai-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-step-icon i, .ai-step-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.ai-step.active .ai-step-icon {
    background: var(--primary);
}

.ai-step.active .ai-step-icon i,
.ai-step.active .ai-step-icon svg {
    color: white;
    animation: spin 1s linear infinite;
}

.ai-step.completed .ai-step-icon {
    background: var(--success);
}

.ai-step.completed .ai-step-icon i,
.ai-step.completed .ai-step-icon svg {
    color: white;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ai-step-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.ai-step-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ai-step.active .ai-step-status {
    color: var(--primary);
}

.ai-step.completed .ai-step-status {
    color: var(--success);
}

/* ===== RESULTS SECTION ===== */
.results-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .results-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

.overview-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.overview-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.overview-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.overview-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Results Tabs */
.results-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.results-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.results-tab:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.results-tab.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.results-tab i, .results-tab svg {
    width: 18px;
    height: 18px;
}

/* Results Content */
.results-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.results-tab-content.active {
    display: block;
}

/* Diagnosis Cards */
.diagnosis-section {
    margin-bottom: 2rem;
}

.diagnosis-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.diagnosis-section-title i,
.diagnosis-section-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

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

.diagnosis-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.diagnosis-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

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

.diagnosis-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.diagnosis-card-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.diagnosis-card-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Recommendations */
.recommendation-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.recommendation-priority {
    width: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.recommendation-priority.high {
    background: var(--error);
}

.recommendation-priority.medium {
    background: var(--warning);
}

.recommendation-priority.low {
    background: var(--success);
}

.recommendation-content {
    flex: 1;
}

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

.recommendation-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recommendation-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.recommendation-badge.high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.recommendation-badge.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.recommendation-badge.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.recommendation-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.recommendation-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.action-tag i, .action-tag svg {
    width: 12px;
    height: 12px;
}

/* Action Plan */
.action-timeline {
    position: relative;
    padding-left: 2rem;
}

.action-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.completed .timeline-marker {
    background: var(--success);
    border-color: var(--success);
}

.timeline-period {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-task {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.timeline-task:hover {
    border-color: var(--primary);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-checkbox:hover {
    border-color: var(--primary);
}

.task-checkbox.checked {
    background: var(--success);
    border-color: var(--success);
}

.task-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.task-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* How To Section */
.howto-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
}

.howto-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-bottom: 1rem;
}

.howto-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.howto-title i, .howto-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.howto-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.howto-toggle i, .howto-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.howto-card.expanded .howto-toggle i,
.howto-card.expanded .howto-toggle svg {
    transform: rotate(180deg);
}

.howto-content {
    display: none;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.howto-card.expanded .howto-content {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.howto-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.howto-step {
    display: flex;
    gap: 1rem;
}

.howto-step-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-step-content {
    flex: 1;
}

.howto-step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.howto-step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== WIZARD NAVIGATION ===== */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.wizard-btn i, .wizard-btn svg {
    width: 20px;
    height: 20px;
}

.wizard-btn-back {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.wizard-btn-back:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.wizard-btn-next {
    background: var(--gradient-primary);
    color: white;
    margin-left: auto;
}

.wizard-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.wizard-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== FOOTER ===== */
.diagnostic-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: float-up 15s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== EXPORT BUTTONS ===== */
.export-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.export-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.export-btn i, .export-btn svg {
    width: 18px;
    height: 18px;
}

.export-btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.export-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* ===== PRINT STYLES ===== */

/* Print header - hidden by default */
.print-header {
    display: none;
}

@media print {
    /* Reset básico para impressão */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    /* Print header visible only when printing */
    .print-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        margin-bottom: 2rem;
        border: 2px solid var(--primary);
        border-radius: 12px;
        background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%) !important;
    }
    
    .print-logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary);
    }
    
    .print-logo svg {
        display: block !important;
    }
    
    .print-company {
        text-align: right;
    }
    
    .print-company h1 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1f2937;
        margin: 0;
    }
    
    .print-company p {
        font-size: 0.875rem;
        color: #6b7280;
        margin: 0.25rem 0 0 0;
    }
    
    /* Ocultar elementos desnecessários */
    .navbar,
    .wizard-progress,
    .nav-buttons,
    .export-buttons,
    .theme-toggle,
    .particles,
    #particles,
    .wizard-step:not(.active),
    .ai-analysis-container,
    .result-tabs,
    .results-tabs,
    footer,
    .btn,
    button {
        display: none !important;
    }
    
    /* Mostrar todos os conteúdos de tabs */
    body.printing .results-tab-content {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 2rem;
        padding-top: 1.5rem;
        border-top: 2px solid var(--primary);
    }
    
    body.printing .results-tab-content::before {
        content: attr(data-tab-title);
        display: block;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    /* Ocultar títulos duplicados nas seções */
    body.printing .diagnosis-section-title {
        display: none !important;
    }
    
    /* Container principal */
    .diagnostic-main {
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* Cabeçalho da página */
    .step-header {
        display: none !important;
    }
    
    /* Cards de resultado */
    .result-card,
    .wizard-card,
    .diagnosis-card {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Overview cards */
    .results-overview {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .overview-card {
        background: #f8fafc !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        text-align: center !important;
    }
    
    .overview-value {
        font-size: 2rem !important;
        font-weight: 800 !important;
        color: var(--primary) !important;
    }
    
    .overview-label {
        font-size: 0.75rem !important;
        color: #6b7280 !important;
        text-transform: uppercase !important;
    }
    
    /* Resumo Executivo - sempre visível */
    .diagnosis-section:first-of-type {
        display: block !important;
        margin-bottom: 2rem !important;
        padding-bottom: 1.5rem !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .diagnosis-section:first-of-type .diagnosis-section-title {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        font-size: 1.1rem !important;
        color: #1f2937 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Badges de prioridade */
    .priority-badge,
    .recommendation-priority-badge {
        border: 1px solid currentColor !important;
        padding: 0.25rem 0.75rem !important;
        border-radius: 20px !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
    }
    
    /* Recomendações */
    .recommendation-card {
        page-break-inside: avoid;
        border: 1px solid #e5e7eb !important;
        border-left: 4px solid var(--primary) !important;
        margin-bottom: 1.5rem;
        padding: 1rem !important;
        border-radius: 8px !important;
    }
    
    .recommendation-header {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .recommendation-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
    }
    
    .recommendation-content {
        font-size: 0.9rem !important;
        color: #4b5563 !important;
    }
    
    .recommendation-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
        border-top: 1px dashed #e5e7eb !important;
        font-size: 0.8rem !important;
    }
    
    /* Timeline / Plano de Ação */
    .timeline-item {
        page-break-inside: avoid;
        border-left: 3px solid var(--primary) !important;
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
        margin-left: 0.5rem;
    }
    
    .timeline-marker {
        display: none !important;
    }
    
    .timeline-period {
        font-weight: 700 !important;
        font-size: 1rem !important;
        color: var(--primary) !important;
        margin-bottom: 0.75rem !important;
    }
    
    .timeline-task {
        display: flex !important;
        gap: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        padding: 0.5rem !important;
        background: #f9fafb !important;
        border-radius: 6px !important;
    }
    
    .task-checkbox {
        display: none !important;
    }
    
    .task-title {
        font-weight: 600 !important;
        color: #1f2937 !important;
    }
    
    .task-desc {
        font-size: 0.8rem !important;
        color: #6b7280 !important;
    }
    
    /* Como Fazer */
    .howto-card {
        page-break-inside: avoid;
        border: 1px solid #e5e7eb !important;
        margin-bottom: 1.5rem;
        padding: 1rem !important;
        border-radius: 8px !important;
    }
    
    .howto-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.5rem !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    .howto-step {
        display: flex !important;
        gap: 1rem !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        border-bottom: 1px dashed #e5e7eb !important;
    }
    
    .howto-step:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .howto-step-number {
        background: var(--primary) !important;
        color: white !important;
        min-width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        flex-shrink: 0 !important;
    }
    
    .howto-step-title {
        font-weight: 600 !important;
        color: #1f2937 !important;
        font-size: 0.9rem !important;
    }
    
    .howto-step-desc {
        font-size: 0.85rem !important;
        color: #6b7280 !important;
        margin-top: 0.25rem !important;
    }
    
    /* Métricas */
    .diagnosis-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .diagnosis-card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-bottom: 0.5rem !important;
        border-bottom: 1px solid #e5e7eb !important;
        margin-bottom: 0.5rem !important;
    }
    
    .diagnosis-card-title {
        font-weight: 600 !important;
        color: #1f2937 !important;
    }
    
    .diagnosis-card-score {
        font-weight: 700 !important;
        color: var(--primary) !important;
    }
    
    /* Títulos de seção */
    h3, h4 {
        color: #1f2937 !important;
        page-break-after: avoid;
    }
    
    /* Links */
    a {
        color: var(--primary) !important;
        text-decoration: none !important;
    }
    
    /* Page breaks */
    #tab-recomendacoes,
    #tab-plano,
    #tab-como-fazer,
    #tab-metricas {
        page-break-before: always;
    }
    
    /* Ajustar larguras */
    .results-container {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Rodapé de impressão */
    .results-container::after {
        content: "Diagnóstico gerado por Ótima Inovações Digitais | www.otimainovacoes.com.br";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #9ca3af;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
    }
    
    /* Ocultar ícones Lucide mas manter ícones de impressão */
    i[data-lucide],
    svg.lucide {
        display: none !important;
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i, .toast svg {
    width: 20px;
    height: 20px;
}

.toast-success {
    border-color: var(--success);
}

.toast-success i, .toast-success svg {
    color: var(--success);
}

.toast-error {
    border-color: var(--danger);
}

.toast-error i, .toast-error svg {
    color: var(--danger);
}

.toast-info i, .toast-info svg {
    color: var(--primary);
}

/* Spinner animation */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== ACCORDION STYLES ===== */
.analysis-accordion {
    margin-top: 2rem;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: var(--bg-card);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    opacity: 1;
    padding: 1rem;
}

.accordion-header {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: rgba(99, 102, 241, 0.05);
}

.accordion-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accordion-header h4 i, .accordion-header h4 svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: transform 0.3s ease;
}

.accordion-toggle i, .accordion-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.accordion-item.active .accordion-toggle i, .accordion-item.active .accordion-toggle svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.accordion-body {
    padding: 0;
}

/* Responsive accordion */
@media (max-width: 768px) {
    .accordion-header {
        padding: 0.75rem 1rem;
    }
    
    .accordion-header h4 {
        font-size: 0.9rem;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0.75rem;
    }
}
