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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
}

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

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.nav-subtitle {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 400;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
}

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

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.about-card p {
    color: #64748b;
    line-height: 1.6;
}

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

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-full {
    width: 100%;
}

/* Authentication Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.875rem;
    font-weight: 600;
    color: #1e293b;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

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

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
}

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

.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.activity-list,
.no-activity,
.no-reports {
    color: #64748b;
    text-align: center;
    padding: 2rem 0;
}

/* Assessment */
.assessment-container {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 2rem;
}

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

.assessment-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 400px;
}

.progress-fill {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.assessment-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.assessment-content h2 {
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 600;
    color: #1e293b;
}

.assessment-content p {
    margin-bottom: 2rem;
    color: #64748b;
    font-size: 1.125rem;
}

/* Assessment Type Cards */
.assessment-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.assessment-type-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.assessment-type-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.assessment-type-card.featured {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.assessment-type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.assessment-type-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.assessment-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.assessment-type-details p {
    margin: 0.5rem 0;
    color: #64748b;
    font-size: 0.95rem;
}

.assessment-type-details ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.assessment-type-details li {
    padding: 0.25rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
}

.assessment-type-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.assessment-select-btn {
    width: 100%;
    margin-top: 1.5rem;
}

.assessment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* BRAP Framework Preview */
.brap-framework-preview {
    margin: 2rem 0;
}

.framework-info h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.domain-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.domain-card h4 {
    color: #3b82f6;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.domain-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.domain-card li {
    padding: 0.5rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.domain-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
}

.assessment-info {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.assessment-info p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
}

/* BRAP Questionnaire Styles */
.question-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.question-header h2 {
    color: #1e293b;
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

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

.domain-indicator {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.question-indicator {
    color: #64748b;
    font-weight: 500;
}

.question-content {
    margin-bottom: 2rem;
}

.main-question {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.sub-questions {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.sub-questions p {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.sub-questions ul {
    margin: 0;
    padding-left: 1.5rem;
}

.sub-questions li {
    margin-bottom: 0.5rem;
    color: #64748b;
    line-height: 1.5;
}

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

.option-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.option-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.option-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-header input[type="radio"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
}

.option-label {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    line-height: 1.4;
}

.risk-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.risk-indicator.risk-low {
    background: #d1fae5;
    color: #065f46;
}

.risk-indicator.risk-medium {
    background: #fef3c7;
    color: #92400e;
}

.risk-indicator.risk-high {
    background: #fee2e2;
    color: #991b1b;
}

.option-details {
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.failure-rate {
    color: #dc2626;
    font-size: 1rem;
}

.business-implications {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}

.empirical-evidence {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.current-risk-summary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.current-risk-summary h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

.risk-meter {
    text-align: center;
}

.total-risk {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #cbd5e1;
    margin-top: 1rem;
}

.total-risk strong {
    color: #dc2626;
    font-size: 1.25rem;
}

/* Risk Report Styles */
.risk-report {
    text-align: center;
    padding: 2rem;
}

.report-header {
    margin-bottom: 3rem;
}

.report-header h2 {
    font-size: 2.25rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.overall-risk {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border-radius: 16px;
    margin: 1rem auto;
}

.overall-risk.risk-low {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.overall-risk.risk-medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.overall-risk.risk-high {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.risk-score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.risk-label {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.domain-breakdown {
    margin: 3rem 0;
    text-align: left;
}

.domain-breakdown h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.domain-scores {
    display: grid;
    gap: 1.5rem;
}

.domain-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.domain-score h4 {
    min-width: 120px;
    margin: 0;
    color: #374151;
}

.domain-score .score {
    min-width: 40px;
    font-weight: 700;
    color: #1e293b;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.key-findings {
    margin: 3rem 0;
    text-align: left;
}

.key-findings h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.finding {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.finding.critical {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.finding.positive {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.report-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Reports */
.reports-container {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 2rem;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.reports-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
}

.reports-list {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Alerts */
.alert-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #10b981;
    color: white;
}

.alert-error {
    background: #ef4444;
    color: white;
}

.alert-warning {
    background: #f59e0b;
    color: white;
}

.alert-info {
    background: #3b82f6;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .nav-menu {
        gap: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .user-info {
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
    }

    .reports-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .metrics {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-features {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .dashboard-container,
    .assessment-container,
    .reports-container {
        padding: 1rem;
    }
}