/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2rem;
}

.header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 120px);
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

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

/* Welcome Section */
.welcome-card {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.welcome-header {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.assessment-info {
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.maturity-levels {
    background: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.maturity-levels h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.levels-grid {
    display: grid;
    gap: 1rem;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.level-item.level-1 { border-left-color: #ef4444; }
.level-item.level-2 { border-left-color: #f59e0b; }
.level-item.level-3 { border-left-color: #eab308; }
.level-item.level-4 { border-left-color: #22c55e; }
.level-item.level-5 { border-left-color: #10b981; }

.level-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.level-1 .level-number { background-color: #ef4444; }
.level-2 .level-number { background-color: #f59e0b; }
.level-3 .level-number { background-color: #eab308; }
.level-4 .level-number { background-color: #22c55e; }
.level-5 .level-number { background-color: #10b981; }

.level-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

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

.welcome-actions {
    text-align: center;
    margin-top: 3rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--border-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Assessment Section */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-container {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-info span {
    font-weight: 500;
}

#category-name {
    color: var(--primary-color);
}

.progress-bar {
    height: 0.5rem;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
    width: 0%;
}

.question-card {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.question-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-item {
    position: relative;
    cursor: pointer;
}

.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--border-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-label:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.option-item input[type="radio"]:checked + .option-label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.option-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option-item input[type="radio"]:checked + .option-label .option-number {
    background: white;
    color: var(--primary-color);
}

.option-text {
    flex: 1;
    line-height: 1.5;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.category-progress {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

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

.category-item {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--border-light);
    transition: all 0.3s ease;
}

.category-item.completed {
    background: var(--success-color);
    color: white;
}

.category-item.current {
    background: var(--primary-color);
    color: white;
}

.category-item h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.category-item .progress {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Results Section */
.results-container {
    max-width: 1000px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.score-card {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.score-circle small {
    font-size: 1rem;
    opacity: 0.8;
}

.score-info {
    text-align: left;
}

.score-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.score-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.category-results {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.category-results h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.chart-container {
    max-width: 500px;
    margin: 0 auto 2rem;
}

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

.category-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--border-light);
    border-radius: var(--radius-md);
}

.category-score-item h4 {
    font-weight: 500;
    color: var(--text-primary);
}

.score-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.score-1 { background-color: #ef4444; }
.score-2 { background-color: #f59e0b; }
.score-3 { background-color: #eab308; }
.score-4 { background-color: #22c55e; }
.score-5 { background-color: #10b981; }

.findings-section {
    margin-bottom: 3rem;
}

.findings-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
}

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

.finding-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.finding-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.strengths h3 {
    color: var(--success-color);
}

.opportunities h3 {
    color: var(--warning-color);
}

.finding-card ul {
    list-style: none;
}

.finding-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.finding-card li:last-child {
    border-bottom: none;
}

.finding-card li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.automation-section,
.recommendations-section {
    margin-bottom: 3rem;
}

.automation-section h2,
.recommendations-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 600;
}

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

.automation-item,
.recommendation-item {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.automation-item h4,
.recommendation-item h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.automation-item p,
.recommendation-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-high {
    background-color: #fef2f2;
    color: #dc2626;
}

.priority-medium {
    background-color: #fffbeb;
    color: #d97706;
}

.priority-low {
    background-color: #f0fdf4;
    color: #16a34a;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .welcome-card {
        padding: 2rem;
    }
    
    .welcome-header h1 {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .question-header h2 {
        font-size: 1.25rem;
    }
    
    .option-label {
        padding: 1rem;
    }
    
    .score-display {
        flex-direction: column;
        gap: 2rem;
    }
    
    .score-info {
        text-align: center;
    }
    
    .findings-grid {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .categories-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .welcome-header h1 {
        font-size: 1.75rem;
    }
    
    .results-header h1 {
        font-size: 2rem;
    }
    
    .automation-grid,
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-list {
        grid-template-columns: 1fr;
    }
}


/* Hide the Manus "Made with" button and related elements */
.manus-watermark,
[class*="manus"],
[id*="manus"],
button[class*="manus"],
div[class*="manus"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Professional overlay for bottom-right corner */
.brand-overlay {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Additional coverage for any bottom-right elements */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 9999;
    pointer-events: none;
}

/* Override any external button styles */
button[style*="position: fixed"],
div[style*="position: fixed"]:not(.brand-overlay) {
    display: none !important;
}

