/* Custom styles for Centage FP&A Maturity Assessment */
/* Centage Brand Colors */
:root {
    --centage-phthalo-green: #103426;
    --centage-mint-green: #00C6AE;
    --centage-pale-turquoise: #94FFEB;
    --centage-polar-green: #E6F9F7;
    --centage-blue-ribbon: #275CFF;
    --centage-dark-ink: #081410;
    --centage-icy-white: #FDFDFF;
    --centage-rich-white: #FFFFFF;
    --centage-rich-black: #000000;
    
    /* Override Bootstrap variables */
    --bs-primary: var(--centage-mint-green);
    --bs-secondary: var(--centage-phthalo-green);
    --bs-success: var(--centage-mint-green);
    --bs-info: var(--centage-pale-turquoise);
    --bs-warning: var(--centage-blue-ribbon);
    --bs-dark: var(--centage-dark-ink);
    --bs-light: var(--centage-polar-green);
}

/* Centage Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-variation-settings: "wght" 400;
}

h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.hero-section {
    background: linear-gradient(135deg, var(--centage-mint-green) 0%, var(--centage-phthalo-green) 100%);
    color: var(--centage-rich-white);
}

.hero-section .btn-primary {
    background-color: var(--centage-rich-white);
    border-color: var(--centage-rich-white);
    color: var(--centage-phthalo-green);
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
}

.hero-section .btn-primary:hover {
    background-color: var(--centage-polar-green);
    border-color: var(--centage-polar-green);
    color: var(--centage-phthalo-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 198, 174, 0.2);
}

/* Assessment form styling */
.form-check {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease-in-out;
}

.form-check:hover {
    background-color: var(--centage-polar-green);
    border: 1px solid var(--centage-pale-turquoise);
    border-radius: 8px;
}

.form-check-input:checked + .form-check-label {
    color: var(--centage-phthalo-green);
    font-weight: 600;
}

.form-check-input:checked {
    background-color: var(--centage-mint-green);
    border-color: var(--centage-mint-green);
}

/* Progress indicator */
.progress {
    background-color: var(--centage-polar-green);
    border-radius: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--centage-mint-green) 0%, var(--centage-pale-turquoise) 100%);
    transition: width 0.3s ease;
    border-radius: 8px;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid var(--centage-polar-green);
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 198, 174, 0.15);
    border-color: var(--centage-pale-turquoise);
}

/* Centage branded cards */
.card-primary {
    background: linear-gradient(135deg, var(--centage-mint-green) 0%, var(--centage-phthalo-green) 100%);
    border: none;
    color: var(--centage-rich-white);
}

.card-secondary {
    background-color: var(--centage-polar-green);
    border: 1px solid var(--centage-pale-turquoise);
}

/* Results page styling */
.display-3 {
    font-size: 3.5rem;
}

/* Chart containers */
canvas {
    max-height: 400px;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .position-fixed {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        page-break-inside: avoid;
    }
    
    .hero-section {
        background: #f8f9fa !important;
        color: #212529 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-section {
        text-align: center;
    }
}

/* Animation for form validation */
.is-invalid {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--centage-polar-green);
}

::-webkit-scrollbar-thumb {
    background: var(--centage-mint-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--centage-phthalo-green);
}

/* Centage branded elements */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.btn-primary {
    background-color: var(--centage-mint-green);
    border-color: var(--centage-mint-green);
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 20px;
}

.btn-primary:hover {
    background-color: var(--centage-phthalo-green);
    border-color: var(--centage-phthalo-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 198, 174, 0.25);
}

.btn-secondary {
    background-color: var(--centage-polar-green);
    border-color: var(--centage-pale-turquoise);
    color: var(--centage-phthalo-green);
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: var(--centage-pale-turquoise);
    border-color: var(--centage-mint-green);
    color: var(--centage-phthalo-green);
}

/* Text colors */
.text-primary {
    color: var(--centage-mint-green) !important;
}

.text-secondary {
    color: var(--centage-phthalo-green) !important;
}


/* Centage Brand Enhancements */

/* Centage logo styling */
.centage-logo {
    width: 32px;
    height: 32px;
    background: var(--centage-mint-green);
    border-radius: 6px;
    position: relative;
    display: inline-block;
}

.centage-logo::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: var(--centage-rich-white);
    border-radius: 50%;
}

.centage-logo::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: var(--centage-mint-green);
    border-radius: 2px;
}

.centage-logo-small {
    width: 16px;
    height: 16px;
    background: var(--centage-mint-green);
    border-radius: 3px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.centage-logo-small::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--centage-rich-white);
    border-radius: 50%;
}

.centage-logo-small::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: var(--centage-mint-green);
    border-radius: 1px;
}

/* Enhanced navbar styling */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 198, 174, 0.1) !important;
}

.navbar-brand {
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    color: var(--centage-phthalo-green) !important;
    text-decoration: none !important;
}

.nav-link {
    color: var(--centage-phthalo-green) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--centage-mint-green) !important;
}
