/* Corporate Governance Toolkit Framework - Designed and Developed by Mohamed AbdelKarim */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Attribution Header */
.attribution-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.attribution-badge {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Main Container */
.governance-toolkit-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Navigation */
.toolkit-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 30px;
    position: sticky;
    top: 40px;
    z-index: 999;
}

.nav-brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-tab:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.nav-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.nav-tab-link {
    text-decoration: none;
    display: inline-block;
}

.nav-tab-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Sections */
.toolkit-section {
    display: none;
    padding: 40px 30px;
    animation: fadeIn 0.5s ease-in;
}

.toolkit-section.active {
    display: block;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #cbd5e0;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

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

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: #64748b;
    margin-top: 8px;
}

/* Attribution Section */
.attribution-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.attribution-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.attribution-section p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers */
.toolkit-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: center;
}

.section-description {
    font-size: 18px;
    color: #64748b;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Dimensions Grid */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.dimension-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.dimension-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.dimension-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.dimension-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

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

/* Maturity Levels */
.maturity-levels {
    background: #f7fafc;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.maturity-levels h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

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

.level-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.level-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.level-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 15px;
    color: white;
}

.level-1 .level-number { background: #ef4444; }
.level-2 .level-number { background: #f59e0b; }
.level-3 .level-number { background: #10b981; }
.level-4 .level-number { background: #8b5cf6; }

.level-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.level-card p {
    color: #64748b;
    font-size: 14px;
}

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

.assessment-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    margin-bottom: 30px;
}

.assessment-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.assessment-card p {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

.assessment-tool {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.assessment-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.assessment-question h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
}

.assessment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.option-label input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.option-label input[type="radio"]:checked + .option-text {
    font-weight: 600;
    color: #667eea;
}

.option-label:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

.option-text {
    flex: 1;
    font-size: 16px;
    color: #2d3748;
}

.assessment-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* Assessment Results */
.assessment-results {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.assessment-results h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.results-summary {
    text-align: center;
    margin-bottom: 40px;
}

.overall-score {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
}

.score-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.score-max {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
}

.score-label {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.dimension-scores {
    margin-bottom: 30px;
}

.dimension-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.dimension-name {
    font-weight: 500;
    color: #2d3748;
}

.dimension-value {
    font-weight: 600;
    color: #667eea;
}

.recommendations {
    background: #f0f9ff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    margin-bottom: 25px;
}

.recommendations h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 15px;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    color: #0c4a6e;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.recommendations li:before {
    content: "•";
    color: #0ea5e9;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Implementation Phases */
.implementation-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.phase-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

.phase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.phase-number {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.phase-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    margin-top: 10px;
}

.phase-card > p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.phase-card li {
    color: #64748b;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
}

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

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.resource-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.resource-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.resource-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.resource-meta {
    font-size: 14px;
    color: #8b5cf6;
    font-weight: 500;
    margin-bottom: 15px;
}

.resource-card p {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Attribution Footer */
.attribution-footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.footer-content p {
    margin-bottom: 8px;
}

.footer-content p:first-child {
    font-size: 18px;
    font-weight: 600;
}

.footer-content p:last-child {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .toolkit-nav {
        padding: 15px 20px;
    }
    
    .nav-brand h1 {
        font-size: 24px;
    }
    
    .nav-tabs {
        gap: 5px;
    }
    
    .nav-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .toolkit-section {
        padding: 30px 20px;
    }
    
    .hero-section h2 {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-section {
        gap: 30px;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .implementation-phases {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .assessment-actions {
        flex-direction: column;
    }
    
    .attribution-footer {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .nav-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-tab {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide Manus Branding Button */
[class*="manus"],
[id*="manus"],
a[href*="manus"],
div[class*="made-with"],
div[id*="made-with"],
button[class*="manus"],
.branding-badge,
.platform-badge,
.creator-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

