/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --excellent-color: #10b981;
    --good-color: #3b82f6;
    --fair-color: #f59e0b;
    --poor-color: #ef4444;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.feature-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Assessment Section */
.assessment-section {
    padding: 2rem 0;
    min-height: 80vh;
}

.assessment-step {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.step-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.step-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-header h2 i {
    color: var(--primary-color);
}

.step-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: width 0.3s;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Questions */
.questions-container {
    margin-bottom: 2rem;
}

.question-block {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.question-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-label:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.option-label input[type="radio"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.option-label input[type="radio"]:checked ~ .option-text {
    font-weight: 600;
    color: var(--primary-color);
}

.option-text {
    flex: 1;
    color: var(--text-dark);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* Report Section */
.report-section {
    padding: 2rem 0;
    min-height: 80vh;
}

.report-header {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.report-header h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.report-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.report-company-info {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.report-company-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.company-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--text-light);
    font-size: 1rem;
}

.company-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-details i {
    color: var(--primary-color);
}

/* Score Cards */
.overall-score-card {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    color: white;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
}

.score-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.score-excellent .score-number { color: var(--excellent-color); }
.score-good .score-number { color: var(--good-color); }
.score-fair .score-number { color: var(--fair-color); }
.score-poor .score-number { color: var(--poor-color); }

.score-interpretation {
    flex: 1;
}

.score-interpretation h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.score-interpretation p {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.95;
}

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

.chart-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.chart-container canvas {
    max-height: 400px;
}

/* Detailed Scores */
.detailed-scores {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

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

.score-card {
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: transform 0.3s;
}

.score-card:hover {
    transform: translateY(-4px);
}

.score-card.score-excellent {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: var(--excellent-color);
}

.score-card.score-good {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: var(--good-color);
}

.score-card.score-fair {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: var(--fair-color);
}

.score-card.score-poor {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: var(--poor-color);
}

.score-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.score-card-header i {
    font-size: 1.5rem;
}

.score-card-header h3 {
    font-size: 1.125rem;
    margin: 0;
}

.score-display {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.score-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.score-bar-fill {
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: width 0.5s;
}

.score-status {
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Insights Section */
.insights-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.insights-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.insights-section h2 i {
    color: var(--warning-color);
}

.insights-grid {
    display: grid;
    gap: 1.5rem;
}

.insight-card {
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-light);
}

.insight-strength {
    border-left-color: var(--success-color);
    background: linear-gradient(90deg, #d1fae5, transparent);
}

.insight-weakness {
    border-left-color: var(--danger-color);
    background: linear-gradient(90deg, #fee2e2, transparent);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.insight-header i {
    font-size: 1.5rem;
}

.insight-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.insight-body p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.insight-body ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.insight-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Action Plan */
.action-plan {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.action-plan h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.action-plan h2 i {
    color: var(--primary-color);
}

.action-plan-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-item {
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
}

.action-item.priority-high {
    border-left-color: var(--danger-color);
    background: linear-gradient(90deg, #fee2e2, transparent);
}

.action-item.priority-medium {
    border-left-color: var(--warning-color);
    background: linear-gradient(90deg, #fef3c7, transparent);
}

.action-item.priority-low {
    border-left-color: var(--success-color);
    background: linear-gradient(90deg, #d1fae5, transparent);
}

.action-priority {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: white;
}

.priority-high .action-priority {
    color: var(--danger-color);
}

.priority-medium .action-priority {
    color: var(--warning-color);
}

.priority-low .action-priority {
    color: var(--success-color);
}

.action-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.action-score {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.action-timeframe {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.action-steps ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.action-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.next-steps {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--primary-color);
}

.next-steps h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.next-steps ol {
    margin-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* History Section */
.history-section {
    padding: 2rem 0;
    min-height: 80vh;
}

.history-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 2rem;
}

.history-content {
    min-height: 300px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.history-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.history-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.history-card-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.history-score {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.history-score.score-excellent { background: var(--excellent-color); }
.history-score.score-good { background: var(--good-color); }
.history-score.score-fair { background: var(--fair-color); }
.history-score.score-poor { background: var(--poor-color); }

.history-card-body {
    margin-bottom: 1rem;
}

.history-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.history-detail i {
    color: var(--primary-color);
}

.history-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.history-scores span {
    padding: 0.25rem 0.5rem;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.history-card-footer {
    display: flex;
    gap: 0.75rem;
}

.history-card-footer .btn {
    flex: 1;
    justify-content: center;
}

/* Loading and Empty States */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-spinner p {
    margin-top: 1rem;
    font-size: 1.125rem;
}

.empty-state,
.error-message,
.loading-message {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i,
.error-message i,
.loading-message i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .overall-score-card {
        flex-direction: column;
        text-align: center;
    }
    
    .score-grid {
        grid-template-columns: 1fr;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .report-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .report-actions {
        width: 100%;
    }
    
    .report-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .company-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}
