:root {
    /* Main color palette */
    --primary-color: #1a56db;
    --primary-dark: #0e3a9b;
    --primary-light: #3c7cf6;
    --secondary-color: #0e1e45;
    --accent-color: #00bcd4;
    
    /* Status colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* UI colors */
    --background-color: #f3f4f6;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #f8fafc;
    --border-color: #e2e8f0;
    
    /* NIST category colors */
    --identify-color: #6366f1;
    --protect-color: #10b981;
    --detect-color: #f59e0b;
    --respond-color: #ef4444;
    --recover-color: #8b5cf6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Animation speeds */
    --transition-slow: 0.5s;
    --transition-medium: 0.3s;
    --transition-fast: 0.15s;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Navigation */
.nav-wrapper {
    background: var(--surface-color);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-buttons {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-medium) ease;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--primary-light);
    color: var(--text-light);
}

/* Assessment Header */
.assessment-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.assessment-header h1 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Framework Info Card */
.framework-info {
    margin-bottom: 2rem;
}

.info-card {
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.info-header h3 {
    color: var(--text-primary);
    font-weight: 600;
}

/* Progress Bar */
.assessment-progress {
    margin-bottom: 2rem;
}

.progress-wrapper {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.progress-bar-container {
    background: #e9ecef;
    border-radius: 100px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 100px;
    transition: width 1s ease;
}

/* Tabs */
.tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: 8px 8px 0 0;
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast) ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: rgba(26, 86, 219, 0.05);
}

/* Tab Content */
.tab-content {
    padding: 2rem;
    background: var(--surface-color);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.tab-content h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.category-score {
    font-size: 1.2rem;
    color: var(--text-secondary);
    background: var(--background-color);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-weight: 500;
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Assessment Table */
.checklist-container {
    margin-bottom: 2rem;
}

.assessment-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.assessment-table thead {
    background: rgba(26, 86, 219, 0.05);
}

.assessment-table th,
.assessment-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.assessment-table th {
    font-weight: 600;
    color: var(--text-primary);
}

/* Implementation Buttons - UPDATED */
.implementation-cell {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-width: 240px;
}

.impl-btn {
    padding: 0.5rem 0.75rem;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-color);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.impl-btn:hover {
    background: rgba(26, 86, 219, 0.1);
    border-color: var(--primary-color);
}

.impl-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 500;
}

.impl-btn.selected.yes {
    background: var(--success-color);
    border-color: var(--success-color);
}

.impl-btn.selected.partial {
    background: var(--warning-color);
    border-color: var(--warning-color);
}

.impl-btn.selected.no {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

/* Status Indicators */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.status-indicator.yes i {
    color: var(--success-color);
}

.status-indicator.partial i {
    color: var(--warning-color);
}

.status-indicator.no i {
    color: var(--danger-color);
}

/* Analyze Button */
.analyze-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium) ease;
    margin-bottom: 2rem;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.analyze-btn:active {
    transform: translateY(1px);
}

/* Results Section */
.hidden {
    display: none;
}

.assessment-results {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.results-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.timestamp {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Score Section */
.score-section {
    margin-bottom: 3rem;
}

.overall-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

.score-circle svg {
    transform: rotate(-90deg);
}

.score-circle svg circle {
    transition: stroke-dasharray 1s ease;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#complianceScore {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.score-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.maturity-level {
    text-align: center;
    color: var(--text-primary);
    font-weight: 500;
}

#maturityLevelText {
    color: var(--primary-color);
    font-weight: 600;
}

/* Category Score Cards */
.category-score-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--transition-medium) ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.identify .category-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--identify-color);
}

.protect .category-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--protect-color);
}

.detect .category-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--detect-color);
}

.respond .category-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--respond-color);
}

.recover .category-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--recover-color);
}

.category-details {
    flex: 1;
}

.category-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.category-progress {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.mini-progress {
    height: 100%;
    width: 0;
    transition: width 1s ease;
}

.identify .mini-progress {
    background: var(--identify-color);
}

.protect .mini-progress {
    background: var(--protect-color);
}

.detect .mini-progress {
    background: var(--detect-color);
}

.respond .mini-progress {
    background: var(--respond-color);
}

.recover .mini-progress {
    background: var(--recover-color);
}

.category-percentage {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Status Counts */
.status-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-item {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface-color);
}

.status-item.implemented {
    border-top: 4px solid var(--success-color);
}

.status-item.partial {
    border-top: 4px solid var(--warning-color);
}

.status-item.missing {
    border-top: 4px solid var(--danger-color);
}

.status-item i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.implemented i {
    color: var(--success-color);
}

.partial i {
    color: var(--warning-color);
}

.missing i {
    color: var(--danger-color);
}

#implementedCount, #partialCount, #missingCount {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

/* Recommendations Section */
.recommendations-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.recommendations-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.recommendations-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-color);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.recommendations-list {
    display: grid;
    gap: 1.5rem;
}

.recommendation-item {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.recommendation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
}

.recommendation-item.critical::before {
    background-color: var(--danger-color);
}

.recommendation-item.high::before {
    background-color: var(--warning-color);
}

.recommendation-item.medium::before {
    background-color: var(--primary-color);
}

.recommendation-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    padding-right: 80px;
}

.priority-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-tag.critical {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.priority-tag.high {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.priority-tag.medium {
    background-color: rgba(26, 86, 219, 0.1);
    color: var(--primary-color);
}

.recommendation-item p {
    margin: 0.75rem 0;
    color: var(--text-primary);
}

.recommendation-item strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.recommendation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.recommendation-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-category i {
    font-size: 1.1rem;
}

.recommendation-status {
    font-weight: 500;
}

.recommendation-status.no {
    color: var(--danger-color);
}

.recommendation-status.partial {
    color: var(--warning-color);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-medium) ease;
    box-shadow: var(--shadow-sm);
}

.download-btn {
    background-color: var(--success-color);
    color: white;
}

.excel-btn {
    background-color: #217346; /* Excel green */
    color: white;
}

.share-btn {
    background-color: var(--primary-color);
    color: white;
}

.print-btn {
    background-color: var(--secondary-color);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn:active {
    transform: translateY(1px);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-light);
}

.footer-section p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .assessment-header h1 {
        font-size: 1.8rem;
    }
    
    .category-score-cards {
        grid-template-columns: 1fr;
    }
    
    .status-counts {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .tabs {
        overflow-x: auto;
    }
    
    .tab-btn {
        flex: 1 0 auto;
        padding: 0.75rem 1rem;
    }
    
    .assessment-table th,
    .assessment-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .implementation-cell {
        min-width: auto;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .impl-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Next Button */
.next-btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.next-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-medium) ease;
    box-shadow: var(--shadow-sm);
}

.next-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.next-btn:active {
    transform: translateY(0);
}

/* Dashboard button */
.dashboard-btn {
    background-color: #0f4c81;
    border-color: #0f4c81;
}

.dashboard-btn:hover {
    background-color: #0a3258;
    border-color: #0a3258;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Success notification */
.saved-notice {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 