/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0a0f1c;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 198, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(120, 198, 255, 0.06) 0%, transparent 50%);
    min-height: 100vh;
}

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

/* Navigation */
.main-nav {
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    text-shadow: 0 0 20px rgba(120, 198, 255, 0.3);
}

.logo p {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

.nav-actions {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

/* Hide sidebar toggle - not needed for permanent sidebar */
.sidebar-toggle {
    display: none;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    overflow-y: auto;
    color: #e2e8f0;
    transition: width 0.3s ease;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

.sidebar-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.2);
}

/* Hide collapse button completely */
.sidebar-close {
    display: none;
}

.sidebar-content {
    padding: 0.75rem;
}

.nav-section {
    margin-bottom: 1.25rem;
}

.nav-section h4 {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section li {
    margin-bottom: 0.2rem;
}

.nav-section a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: block;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    position: relative;
}

.nav-section a:hover {
    background: rgba(120, 198, 255, 0.1);
    color: #ffffff;
    border-left-color: #78c6ff;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(120, 198, 255, 0.15);
}

/* Sidebar Overlay */
/* Remove sidebar overlay - not needed for permanent sidebar */
.sidebar-overlay {
    display: none;
}

/* Adjust main content for permanent sidebar */
.main-nav,
.hero-section,
.main-content,
.page-header,
body > .container,
footer {
    margin-left: 220px;
    transition: margin-left 0.3s ease;
}



/* Hero Section */
.hero-section {
    background: transparent;
    color: #ffffff;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.clickable-feature {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.clickable-feature:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.clickable-feature:hover .feature-icon {
    transform: scale(1.1);
    animation: pulse 1s infinite;
}

.clickable-feature:hover .feature-cta {
    opacity: 1;
    transform: translateY(0);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-cta {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.9);
    color: #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(120, 198, 255, 0.3);
}

.btn-secondary {
    background: rgba(120, 198, 255, 0.1);
    color: #78c6ff;
    border: 1px solid rgba(120, 198, 255, 0.3);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(120, 198, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(120, 198, 255, 0.15);
    color: #ffffff;
    border-color: rgba(120, 198, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(120, 198, 255, 0.3),
        0 0 20px rgba(120, 198, 255, 0.4);
}

/* Page Header */
.page-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 3rem 0;
    margin-bottom: 2rem;
    margin-top: 80px;
    position: relative;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(120, 198, 255, 0.3);
    color: #ffffff;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #cbd5e1;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding-top: 2rem;
}

.content-section {
    display: none;
    min-height: calc(100vh - 70px);
    padding: 3rem 0;
}

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

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

.section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(120, 198, 255, 0.3);
}

.section-header p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Historical Note */
.historical-note {
    background: rgba(120, 198, 255, 0.1);
    border-left: 4px solid #78c6ff;
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 8px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(120, 198, 255, 0.2);
}

.historical-note h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3);
}

.historical-note ul {
    list-style: none;
    padding-left: 0;
}

.historical-note li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #e2e8f0;
}

.historical-note li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #78c6ff;
    font-weight: bold;
}

/* Process Overview */
.process-overview {
    margin-bottom: 3rem;
}

.process-overview h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(120, 198, 255, 0.3);
}

.process-flow {
    display: grid;
    gap: 2rem;
}

.process-group {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-group h4 {
    color: #78c6ff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3);
}

.process-group > p {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(120, 198, 255, 0.15);
    border: 2px solid rgba(120, 198, 255, 0.4);
    color: #78c6ff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 16px rgba(120, 198, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.step-content {
    padding-left: 75px;
    padding-top: 10px;
}

.step-content h5 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Clickable steps */
.clickable-step {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.clickable-step:hover {
    background: rgba(120, 198, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 198, 255, 0.15);
}

.clickable-step:hover .step-number {
    background: rgba(120, 198, 255, 0.3);
    border-color: #78c6ff;
    color: #ffffff;
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(120, 198, 255, 0.8);
    box-shadow: 
        0 8px 24px rgba(120, 198, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.clickable-step:hover .step-content h5 {
    color: #78c6ff;
}

/* Key Concepts */
.key-concepts {
    margin-bottom: 3rem;
}

.key-concepts h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(120, 198, 255, 0.3);
}

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

.concept-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(120, 198, 255, 0.2);
}

.concept-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(120, 198, 255, 0.1);
    color: #78c6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1rem auto;
    border: 1px solid rgba(120, 198, 255, 0.3);
}

.concept-card h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.concept-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Eligibility Box - Now matches glass theme */
.eligibility-box h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3);
}

/* Character Introduction */
.illustration-example {
    margin-bottom: 3rem;
}

.character-intro {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.character-avatar {
    font-size: 4rem;
    flex-shrink: 0;
}

.character-details h4 {
    color: #78c6ff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.character-details p {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Separation Guide */
.separation-guide {
    margin-bottom: 3rem;
}

.separation-guide > h3 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.separation-guide > p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.separation-categories {
    display: grid;
    gap: 2rem;
}

.category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category h4 {
    color: #78c6ff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.category p, .category li {
    color: #94a3b8;
}

.rule-box h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3);
}

.asset-rules h5,
.equity-transactions h5,
.tax-categories h5 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.transaction-type h5 {
    color: #059669;
    margin-bottom: 1rem;
}

.transaction-type:nth-child(2) h5 {
    color: #dc2626;
}

/* Fundamental Principles */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.principle-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #78c6ff;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.principle-card h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.principle-card p, .principle-card li {
    color: #94a3b8;
}

/* Recent Updates */
.recent-updates {
    margin-bottom: 3rem;
}

.update-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
}

.update-notice h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Document Retention */
.document-retention {
    margin-bottom: 3rem;
}

.retention-notice {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #78c6ff;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.retention-notice h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3);
}

.retention-notice p, .retention-notice li {
    color: #94a3b8;
    line-height: 1.6;
}

.retention-notice strong {
    color: #78c6ff;
}

/* Management Options Cards */
.management-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.management-card {
    background: rgba(120, 198, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(120, 198, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.management-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 24px rgba(120, 198, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(120, 198, 255, 0.3);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.management-card h5 {
    color: #78c6ff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.management-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.management-card strong {
    color: #ffffff;
    font-weight: 700;
}

/* Modern Filing System Cards */
.filing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.filing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(120, 198, 255, 0.3);
}

.filing-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.filing-card h5 {
    color: #78c6ff;
    margin-bottom: 0.5rem;
}

.filing-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Document Types Modern */
.document-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.document-card {
    background: rgba(120, 198, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 198, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.document-card:hover {
    transform: translateY(-3px);
    border-color: rgba(120, 198, 255, 0.3);
}

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

.document-card h5 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.document-card p {
    color: #94a3b8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.requirements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.req-item {
    background: rgba(120, 198, 255, 0.2);
    color: #78c6ff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Verification Types Grid */
.verification-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.verification-type-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.type-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.verification-type-card h5 {
    color: #78c6ff;
    margin-bottom: 0.5rem;
}

.verification-type-card p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Template Showcase */
.template-showcase {
    margin-top: 2rem;
}

.template-card {
    background: rgba(120, 198, 255, 0.08);
    border: 1px solid rgba(120, 198, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
}

.template-content {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(120, 198, 255, 0.1);
}

.template-row {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.template-row strong {
    color: #78c6ff;
}

@media (max-width: 1024px) {
    .filing-grid,
    .document-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .verification-types-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filing-grid,
    .document-grid,
    .verification-types-grid {
        grid-template-columns: 1fr;
    }
}

/* VAT Rounding Notice */
.vat-rounding-notice {
    margin-bottom: 2rem;
}

.notice-box {
    background: #fef2f2;
    border: 1px solid #f87171;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.availability-note {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 4px 4px 0;
}

.availability-note p {
    margin: 0;
    color: #0c4a6e;
    font-size: 0.9rem;
}

/* Bookkeeping Methods */
.bookkeeping-methods {
    margin-bottom: 3rem;
}

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

.method-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
}

.method-card h4 {
    color: #78c6ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.method-details h5 {
    color: #1e293b;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

/* Simplified Annual Accounts */
.simplified-annual-accounts {
    margin-bottom: 3rem;
}

.process-timeline {
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.timeline-marker {
    background: #2563eb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    flex-grow: 1;
}

.timeline-content h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Company Types */
.company-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.company-type-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #059669;
}

.company-type-card h4 {
    color: #78c6ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Annual Report Components */
.annual-report-components {
    margin-bottom: 3rem;
}

.components-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

@media (max-width: 1024px) {
    .components-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .components-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Component Icon Styling */
.component-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.component {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    max-width: 280px;
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.component:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(120, 198, 255, 0.2);
}

.component h5 {
    color: #78c6ff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.component p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.component-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.component-card:hover {
    transform: translateY(-5px);
}

.component-card h4 {
    color: #78c6ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.component-details ul {
    margin-top: 1rem;
}

/* Preparation Timeline */
.preparation-timeline {
    margin-bottom: 3rem;
}

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

.step-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    position: relative;
}

.timeline-step-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    background: rgba(120, 198, 255, 0.2);
    border: 2px solid rgba(120, 198, 255, 0.4);
    color: #78c6ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.step-content h4 {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* Resources */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.resource-card h3 {
    color: #2563eb;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.resource-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.resource-card li {
    margin-bottom: 0.5rem;
    color: #64748b;
}

/* Footer */
.main-footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.2);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-actions {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-link:first-child {
        display: inline-block; /* Always show Home */
    }
    
    .nav-link:not(:first-child) {
        display: none; /* Hide other links on mobile, accessible via sidebar */
    }
    
    /* Show sidebar toggle only on mobile */
    .sidebar-toggle {
        display: flex !important;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Adjust sidebar for mobile - make it overlay on mobile */
    .sidebar {
        width: 100%;
        left: -100%;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .sidebar-content {
        padding: 1rem;
    }
    
    /* Re-enable sidebar overlay for mobile */
    .sidebar-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Adjust main content margin for mobile */
    .main-nav,
    .hero-section,
    .main-content,
    .page-header,
    body > .container,
    footer {
        margin-left: 0;
    }
    
    .main-content {
        margin-top: 80px;
        padding-top: 1rem;
    }
    
    .page-header {
        margin-top: 80px;
    }
    
    /* Mobile sidebar adjustments */
    .sidebar {
        background: #2c3e50;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .character-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .concept-grid {
        grid-template-columns: 1fr;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .process-group {
        padding: 1.5rem;
    }
    
    .concept-card {
        padding: 1.5rem;
    }
}

/* Animation and transitions */
.content-section {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Print styles */
@media print {
    .main-nav,
    .cta-buttons,
    .main-footer {
        display: none;
    }
    
    .hero-section {
        background: white;
        color: black;
        padding: 2rem 0;
    }
    
    .content-section {
        display: block !important;
        page-break-before: always;
    }
    
    .content-section:first-of-type {
        page-break-before: auto;
    }
}

/* Calculation Cards */
.calculation-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.calculation-card h5 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.total {
    background: #2563eb;
    color: white;
    padding: 1rem;
    margin: 1rem -1rem -1rem -1rem;
    border-radius: 0 0 8px 8px;
    font-size: 1.1rem;
}

.tip-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.tip-box p {
    margin: 0;
    color: #92400e;
}

/* Variance Analysis */
.variance-positive {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-radius: 8px;
}

.comparison-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

/* Cycle Diagram */
.cycle-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.cycle-step {
    background: #2563eb;
    color: white;
    padding: 1.5rem;
    border-radius: 50%;
    text-align: center;
    min-width: 120px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cycle-step h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.cycle-step p {
    margin: 0;
    font-size: 0.85rem;
}

.cycle-arrow {
    font-size: 2rem;
    color: #2563eb;
    font-weight: bold;
}

/* Cash Flow Cycle Steps - Match index page bubble format */
.flow-step {
    background: rgba(255,255,255,0.1) !important;
    padding: 1.2rem !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
    overflow: visible !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    height: 120px !important;
    width: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 50px !important;
}

.flow-step:hover {
    transform: translateY(-5px) !important;
    background: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.4) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.flow-step .step-number {
    background: rgba(120, 198, 255, 0.2) !important;
    border: 2px solid rgba(120, 198, 255, 0.4) !important;
    color: #78c6ff !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    backdrop-filter: blur(10px) !important;
    position: absolute !important;
    top: -47px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
}

.flow-step:hover .step-number {
    background: rgba(120, 198, 255, 0.3) !important;
    border-color: #78c6ff !important;
    transform: translateX(-50%) scale(1.1) !important;
    animation: pulse 1s infinite !important;
}

.flow-step .step-title {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.flow-step .step-desc {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flow-arrow {
    font-size: 1.5rem !important;
    color: #78c6ff !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    margin: 0 0.5rem !important;
    align-self: center !important;
    margin-top: 50px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Flow diagram container to ensure 4 bubbles fit in one row */
.flow-diagram {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 2rem 0 !important;
    padding: 1rem 0 !important;
}

@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .flow-arrow {
        transform: rotate(90deg) !important;
        margin: 0.5rem 0 !important;
    }
    
    .flow-step {
        max-width: 280px !important;
    }
}

/* Area Cards */
.area-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
}

.area-card h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.success-message ul {
    margin: 1rem 0;
}

.success-message li {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* Responsive adjustments for cycle diagram */
@media (max-width: 768px) {
    .cycle-diagram {
        flex-direction: column;
    }
    
    .cycle-arrow {
        transform: rotate(90deg);
    }
    
    .cycle-step {
        min-width: 100px;
        min-height: 100px;
    }
}

/* Accessibility improvements */
.btn:focus,
.nav-menu a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced Chapter 4 Styles */
.learning-objectives {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196f3;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.learning-objectives h4 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.learning-objectives ul {
    list-style-type: none;
    padding-left: 0;
}

.learning-objectives li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(25, 118, 210, 0.1);
    color: #333;
}

.learning-objectives li:last-child {
    border-bottom: none;
}

.learning-objectives li::before {
    content: "✓";
    color: #2196f3;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Documentation Requirements */
.documentation-requirements {
    margin: 2rem 0;
}

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

.requirement-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.requirement-card h4 {
    color: #ff6b35;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.requirement-list h5 {
    color: #333;
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
}

.requirement-list ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.requirement-list li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Record Retention Timeline */
.retention-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.timeline-duration {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 1rem;
    min-width: 80px;
    text-align: center;
}

.timeline-content {
    flex: 1;
}

.timeline-content strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* BAS System Overview */
.bas-overview {
    margin: 2rem 0;
}

.overview-card {
    background: linear-gradient(135deg, #f1f8e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 2rem;
}

.overview-card h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.overview-card ul {
    list-style-type: none;
    padding-left: 0;
}

.overview-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    color: #333;
}

.overview-card li:last-child {
    border-bottom: none;
}

.overview-card li strong {
    color: #2e7d32;
}

/* Detailed Account Structure */
.detailed-account-structure {
    margin: 2rem 0;
}

.account-category-detailed {
    margin: 2rem 0;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.category-header {
    background: linear-gradient(135deg, #263238 0%, #37474f 100%);
    color: white;
    padding: 1.5rem 2rem;
}

.category-header h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.category-header p {
    margin: 0;
    opacity: 0.9;
}

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

.subcategory-card {
    padding: 2rem;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.subcategory-card:last-child {
    border-right: none;
}

.subcategory-card h6 {
    color: #1976d2;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 0.5rem;
}

.subcategory-card ul {
    list-style-type: none;
    padding-left: 0;
}

.subcategory-card li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #555;
}

.subcategory-card li:last-child {
    border-bottom: none;
}

/* Double-Entry System Styles */
.double-entry-system {
    margin: 3rem 0;
}

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

.principle-card {
    background: #fff;
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.1);
}

.principle-card h4 {
    color: #f57c00;
    margin-bottom: 1rem;
}

.principle-card ol {
    padding-left: 1.5rem;
}

.principle-card li {
    margin-bottom: 0.8rem;
    color: #555;
}

.principle-card li strong {
    color: #333;
}

/* Enhanced Debit-Credit Rules */
.accounting-equation-detailed {
    margin: 2rem 0;
}

.equation-breakdown {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.equation-main, .equation-expanded {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.equation-expanded .equation-part {
    background: none;
    color: #333;
    border: 2px solid #333;
    text-shadow: none;
    padding: 0.5rem 1rem;
    font-weight: bold;
}

.equation-part {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    min-width: 120px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.equation-part.assets {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    border: 2px solid #2e7d32;
}

.equation-part.liabilities {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    border: 2px solid #c62828;
}

.equation-part.equity {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    border: 2px solid #1565c0;
}

.equation-symbol {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff9800;
}

.equation-explanation {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 8px;
    color: #333;
}

.debit-credit-rules-enhanced {
    margin: 2rem 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.rule-card.debit-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 2rem;
}

.rule-card.credit-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe082 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 2rem;
}

.rule-card h5 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.debit-card h5 {
    color: #2e7d32;
}

.credit-card h5 {
    color: #f57c00;
}

.rule-section {
    margin-bottom: 1.5rem;
}

.rule-section h6 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.debit-card .rule-section h6 {
    color: #2e7d32;
}

.credit-card .rule-section h6 {
    color: #f57c00;
}

.rule-section ul {
    list-style-type: none;
    padding-left: 0;
}

.rule-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

.rule-section li:last-child {
    border-bottom: none;
}

/* T-Account Examples */
.t-account-examples {
    margin: 3rem 0;
}

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

.t-account {
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.t-account h5 {
    background: #333;
    color: white;
    text-align: center;
    margin: 0;
    padding: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.t-account-structure {
    display: flex;
    min-height: 200px;
}

.t-account-side {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.debit-side {
    background: #f1f8e9;
    border-right: 1px solid #333;
}

.credit-side {
    background: #fff3e0;
}

.side-label {
    font-weight: bold;
    text-align: center;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.t-entries {
    flex: 1;
}

.entry {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
    color: #333;
}

.entry:last-child {
    border-bottom: none;
}

/* Transaction Analysis Framework */
.transaction-analysis {
    margin: 3rem 0;
}

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

.step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(120, 198, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
}

.detailed-step-number {
    background: rgba(120, 198, 255, 0.15);
    border: 2px solid rgba(120, 198, 255, 0.4);
    color: #78c6ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #7b1fa2;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.transaction-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.type-category {
    background: #f3e5f5;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #9c27b0;
    color: #333;
}

.type-category h5 {
    color: #7b1fa2;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.type-category p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.equation-application p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #7b1fa2;
}

.recording-checklist h5 {
    color: #7b1fa2;
    margin: 0 0 0.5rem 0;
}

/* Common Transaction Examples */
.common-transactions-detailed {
    margin: 3rem 0;
}

.transaction-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.transaction-example {
    background: #fff;
    border: 2px solid #607d8b;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(96, 125, 139, 0.1);
}

.transaction-example h4 {
    color: #455a64;
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid #607d8b;
    padding-bottom: 0.5rem;
}

.example-scenario {
    background: rgba(120, 198, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 198, 255, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: #94a3b8;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.example-scenario p {
    margin: 0.5rem 0;
    color: #94a3b8;
}

.example-scenario strong {
    color: #78c6ff;
    font-weight: 600;
}

.analysis-process {
    margin: 1.5rem 0;
}

.analysis-process h5 {
    color: #455a64;
    margin: 0 0 1rem 0;
}

.analysis-process ul {
    list-style-type: none;
    padding-left: 0;
}

.analysis-process li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.analysis-process li:last-child {
    border-bottom: none;
}

/* Journal Entry Tables */
.journal-entry-detailed {
    margin: 1.5rem 0;
}

.journal-entry-detailed h5 {
    color: #455a64;
    margin: 0 0 1rem 0;
}

.journal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.journal-table thead {
    background: linear-gradient(135deg, #37474f, #455a64);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.journal-table th,
.journal-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.journal-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.journal-table tbody tr:hover {
    background: #f5f5f5;
}

.journal-table td:nth-child(4),
.journal-table td:nth-child(5) {
    text-align: right;
    font-weight: 600;
}

.journal-table td:nth-child(4) {
    color: #2e7d32;
}

.journal-table td:nth-child(5) {
    color: #f57c00;
}

.entry-description {
    font-style: italic;
    color: #555;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Responsive Design for Chapter 4 */
@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .t-account-structure {
        flex-direction: column;
    }
    
    .debit-side {
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .equation-main, .equation-expanded {
        flex-direction: column;
        font-size: 1rem;
    }
    
    .equation-part {
        min-width: auto;
    }
    
    .transaction-examples-grid {
        grid-template-columns: 1fr;
    }
    
    .requirement-cards {
        grid-template-columns: 1fr;
    }
    
    .subcategory-grid {
        grid-template-columns: 1fr;
    }
    
    .subcategory-card {
        border-right: none;
    }
}

/* Enhanced Payment Tracking Styles */
.payment-tracking-enhanced {
    margin: 3rem 0;
}

.tracking-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

/* Tracking Dashboard */
.tracking-dashboard {
    margin: 2rem 0;
}

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

.tracking-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tracking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.receivables-card {
    border-left-color: #4caf50;
}

.aging-card {
    border-left-color: #ff9800;
}

.collection-card {
    border-left-color: #2196f3;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h5 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.card-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1976d2;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

/* Aging Analysis */
.aging-breakdown {
    margin-top: 1rem;
}

.aging-bar {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aging-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: filter 0.3s ease;
}

.aging-segment:hover {
    filter: brightness(1.1);
}

.aging-segment.current {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.aging-segment.thirty {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
}

.aging-segment.sixty {
    background: linear-gradient(135deg, #f44336, #ef5350);
}

.aging-segment.ninety {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

.aging-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.current {
    background: #4caf50;
}

.legend-color.thirty {
    background: #ff9800;
}

.legend-color.sixty {
    background: #f44336;
}

.legend-color.ninety {
    background: #9c27b0;
}

/* Collection Pipeline */
.collection-pipeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pipeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    color: #333;
}

.pipeline-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.pipeline-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pipeline-text strong {
    color: #333;
    margin-bottom: 0.25rem;
}

.pipeline-text span {
    color: #666;
    font-size: 0.9rem;
}

/* Payment Timeline */
.payment-timeline-section {
    margin: 3rem 0;
}

.payment-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin: 2rem 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
    padding: 1rem;
    position: relative;
}

.timeline-step.active .step-circle {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-color: #4caf50;
}

.timeline-step:not(.active) .step-circle {
    background: #e0e0e0;
    border-color: #bdbdbd;
    color: #757575;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.step-content h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.step-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.step-percentage {
    background: #1976d2;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.8rem;
}

.timeline-connector {
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #4caf50, #e0e0e0);
    margin: 0 -20px;
    position: relative;
    top: -30px;
}

/* Collection Strategies */
.collection-strategies {
    margin: 3rem 0;
}

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

.strategy-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.strategy-card.prevention {
    border-top-color: #4caf50;
}

.strategy-card.early-intervention {
    border-top-color: #ff9800;
}

.strategy-card.active-collection {
    border-top-color: #f44336;
}

.strategy-card.resolution {
    border-top-color: #9c27b0;
}

.strategy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.strategy-card h5 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.strategy-timeline {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.strategy-actions {
    text-align: left;
}

.action-item {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    color: #333;
}

.action-item:hover {
    background: #e3f2fd;
}

/* Tools Comparison */
.tracking-tools-section {
    margin: 3rem 0;
}

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

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.basic-tool {
    border-top-color: #9e9e9e;
}

.professional-tool {
    border-top-color: #2196f3;
    position: relative;
}

.professional-tool::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -12px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.enterprise-tool {
    border-top-color: #9c27b0;
}

.tool-card h5 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-text {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tool-features {
    margin: 1.5rem 0;
}

.feature {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.feature:last-child {
    border-bottom: none;
}

.feature.missing {
    color: #999;
}

.tool-cost {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: #1976d2;
    margin-top: 1.5rem;
}

/* Responsive Design for Payment Tracking */
@media (max-width: 768px) {
    .payment-timeline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .timeline-connector {
        width: 3px;
        height: 40px;
        margin: -20px auto;
        background: linear-gradient(to bottom, #4caf50, #e0e0e0);
        top: 0;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .strategy-cards {
        grid-template-columns: 1fr;
    }
    
    .tools-comparison {
        grid-template-columns: 1fr;
    }
    
    .aging-legend {
        justify-content: center;
    }
    
    .pipeline-item {
        flex-direction: column;
        text-align: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
        color: #fff;
    }
    
    .btn-primary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .feature {
        background: rgba(255,255,255,0.2);
        border: 1px solid rgba(255,255,255,0.3);
    }
}

/* COMPREHENSIVE FIX: Convert ALL elements to consistent glass-morphism theme */
.method-card,
.timeline-content,
.company-type-card,
.component-card,
.step-item,
.resource-card,
.calculator-card,
.example-card,
.category-card,
.scenario-card,
.tip-card,
.update-card,
.calc-example,
.reference-card,
.category-group,
.rule-card,
.transaction-card,
.vat-card,
.recon-step,
.report-card,
.kpi-card,
.budget-card,
.flow-step,
.component,
.eligibility-box,
.rule-box,
.depreciation-example,
.formula-box,
.warning-box,
.info-box,
.note-box,
.example-box,
.alert-box,
.highlight-box,
.tip-box,
.procedure-card,
.step-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    border-radius: 12px !important;
}

/* ALL TEXT should be darker gray for better contrast */
.method-card p, .method-card li,
.timeline-content p, .timeline-content li,
.company-type-card p, .company-type-card li,
.component-card p, .component-card li,
.step-item p, .step-item li,
.resource-card p, .resource-card li,
.calculator-card p, .calculator-card li,
.example-card p, .example-card li,
.category-card p, .category-card li,
.scenario-card p, .scenario-card li,
.tip-card p, .tip-card li,
.update-card p, .update-card li,
.reference-card p, .reference-card li,
.category-group p, .category-group li,
.rule-card p, .rule-card li,
.transaction-card p, .transaction-card li,
.vat-card p, .vat-card li,
.recon-step p, .recon-step li,
.report-card p, .report-card li,
.kpi-card p, .kpi-card li,
.budget-card p, .budget-card li,
.flow-step p, .flow-step li,
.component p, .component li,
.calc-example,
.eligibility-box p, .eligibility-box li,
.rule-box p, .rule-box li,
.depreciation-example p, .depreciation-example li,
.formula-box p, .formula-box li,
.warning-box p, .warning-box li,
.info-box p, .info-box li,
.note-box p, .note-box li,
.example-box p, .example-box li,
.alert-box p, .alert-box li,
.highlight-box p, .highlight-box li,
.tip-box p, .tip-box li,
.procedure-card p, .procedure-card li,
.step-card p, .step-card li {
    color: #94a3b8 !important;
}

/* ALL HEADINGS should be white for maximum contrast */
.method-card h4, .timeline-content h4, .company-type-card h4,
.component-card h4, .step-item h4, .resource-card h4,
.calculator-card h4, .example-card h4, .category-card h4,
.scenario-card h4, .tip-card h4, .update-card h4,
.reference-card h4, .category-group h4, .rule-card h4,
.transaction-card h4, .vat-card h4, .recon-step h4,
.report-card h4, .kpi-card h4, .budget-card h4,
.flow-step h4, .component h4,
.eligibility-box h4, .rule-box h4, .depreciation-example h4,
.formula-box h4, .warning-box h4, .info-box h4,
.note-box h4, .example-box h4, .alert-box h4,
.highlight-box h4, .tip-box h4, .procedure-card h4,
.step-card h4,
.method-card h3, .timeline-content h3, .company-type-card h3,
.component-card h3, .step-item h3, .resource-card h3,
.calculator-card h3, .example-card h3, .category-card h3,
.scenario-card h3, .tip-card h3, .update-card h3,
.reference-card h3, .category-group h3, .rule-card h3,
.transaction-card h3, .vat-card h3, .recon-step h3,
.report-card h3, .kpi-card h3, .budget-card h3,
.flow-step h3, .component h3 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
}

/* OVERRIDE ALL REMAINING DARK TEXT - Everything should be light! */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

p, li, span, div, td, th, label, input, textarea, select {
    color: #94a3b8 !important;
}

/* Strong emphasis should be brighter */
strong, b {
    color: #ffffff !important;
}

/* Links should be cyan */
a {
    color: #78c6ff !important;
}

a:hover {
    color: #ffffff !important;
}

/* Remove background from chapter intro */
.chapter-intro {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    padding: 1.5rem 0 !important;
    margin-bottom: 2rem !important;
}

/* Fix depreciation example formatting */
.depreciation-example {
    margin: 1.5rem 0 !important;
    padding: 1.5rem !important;
}

.depreciation-example h4 {
    margin: 0 0 1rem 0 !important;
    font-size: 1.2rem !important;
}

.example-scenario {
    display: flex !important;
    gap: 2rem !important;
    margin-top: 1rem !important;
}

.scenario-details {
    flex: 1 !important;
}

.scenario-details p {
    margin: 0.5rem 0 !important;
    padding: 0.3rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.scenario-details p:last-child {
    border-bottom: none !important;
}

.year-breakdown {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.year {
    background: rgba(120, 198, 255, 0.1) !important;
    color: #78c6ff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-weight: 600 !important;
    border: 1px solid rgba(120, 198, 255, 0.2) !important;
}

@media (max-width: 768px) {
    .example-scenario {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* Fix Personal vs Business Money section formatting */
.own-vs-business {
    margin: 3rem 0 !important;
}

.separation-importance {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.separation-importance p {
    color: #94a3b8 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

.separation-importance ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
    list-style: none !important;
    padding: 0 !important;
}

.separation-importance li {
    background: rgba(120, 198, 255, 0.1) !important;
    color: #78c6ff !important;
    padding: 0.8rem 1.2rem !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: 600 !important;
    border: 1px solid rgba(120, 198, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.separation-importance li:hover {
    background: rgba(120, 198, 255, 0.15) !important;
    border-color: rgba(120, 198, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

.transaction-examples {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
}

.example-category {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.example-category:hover {
    transform: translateY(-5px) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(120, 198, 255, 0.2) !important;
}

.example-category h4 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.example-category ul {
    list-style: none !important;
    padding: 0 !important;
}

.example-category li {
    color: #94a3b8 !important;
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    padding-left: 1.5rem !important;
    line-height: 1.5 !important;
}

.example-category li:last-child {
    border-bottom: none !important;
}

.example-category li::before {
    content: '•' !important;
    position: absolute !important;
    left: 0 !important;
    color: #78c6ff !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
}

@media (max-width: 768px) {
    .separation-importance ul {
        grid-template-columns: 1fr !important;
    }
    
    .transaction-examples {
        grid-template-columns: 1fr !important;
    }
}

/* FORCE all white box elements to use glass morphism theme */
.component-card,
.timeline-content,
.company-type-card,
.method-card,
.overview-card,
.requirement-card,
.area-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.component-card:hover,
.timeline-content:hover,
.company-type-card:hover,
.method-card:hover,
.overview-card:hover,
.requirement-card:hover,
.area-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(120, 198, 255, 0.2) !important;
}

/* Fix any remaining white backgrounds */
.vat-card,
.scenario-card,
.calculation-card,
.comparison-card,
.step-item,
.transaction-example,
.principle-card,
.category-header + .subcategory-grid .subcategory-card,
.journal-table thead {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ensure proper text colors for all elements */
.component-card h4,
.timeline-content h4,
.company-type-card h4,
.method-card h4,
.overview-card h4,
.requirement-card h4,
.area-card h4 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
}

.component-card p,
.component-card li,
.timeline-content p,
.timeline-content li,
.company-type-card p,
.company-type-card li,
.method-card p,
.method-card li,
.overview-card p,
.overview-card li,
.requirement-card p,
.requirement-card li,
.area-card p,
.area-card li {
    color: #94a3b8 !important;
}

.component-card strong,
.timeline-content strong,
.company-type-card strong,
.method-card strong,
.overview-card strong,
.requirement-card strong,
.area-card strong {
    color: #ffffff !important;
}

/* COMPREHENSIVE WHITE BACKGROUND OVERRIDE - Target ALL remaining white boxes */
.method-card,
.timeline-content,
.company-type-card,
.component-card,
.step-item,
.resource-card,
.requirement-card,
.principle-card,
.t-account,
.transaction-example,
.journal-table,
.tracking-card,
.strategy-card,
.tool-card,
.area-card,
.calculation-card,
.comparison-card,
.overview-card,
.subcategory-card,
.character-intro,
.transaction-type,
.update-notice,
.notice-box,
.availability-note,
.tip-box,
.timeline-item,
.pipeline-item,
.action-item,
.tool-cost,
.entry-description,
.type-category,
.equation-breakdown,
.rule-card,
.debit-side,
.credit-side {
    background: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}

/* Specific hover states */
.method-card:hover,
.timeline-content:hover,
.company-type-card:hover,
.component-card:hover,
.step-item:hover,
.resource-card:hover,
.requirement-card:hover,
.principle-card:hover,
.tracking-card:hover,
.strategy-card:hover,
.tool-card:hover,
.area-card:hover,
.calculation-card:hover,
.comparison-card:hover,
.overview-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-3px) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(120, 198, 255, 0.2) !important;
}

/* Fix table headers and special elements */
.journal-table thead,
.journal-table tbody tr {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.journal-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Ensure all headings in these elements are white */
.method-card h4, .method-card h3, .method-card h5,
.timeline-content h4, .timeline-content h3, .timeline-content h5,
.company-type-card h4, .company-type-card h3, .company-type-card h5,
.component-card h4, .component-card h3, .component-card h5,
.step-item h4, .step-item h3, .step-item h5,
.resource-card h4, .resource-card h3, .resource-card h5,
.requirement-card h4, .requirement-card h3, .requirement-card h5,
.principle-card h4, .principle-card h3, .principle-card h5,
.tracking-card h4, .tracking-card h3, .tracking-card h5,
.strategy-card h4, .strategy-card h3, .strategy-card h5,
.tool-card h4, .tool-card h3, .tool-card h5,
.area-card h4, .area-card h3, .area-card h5,
.calculation-card h4, .calculation-card h3, .calculation-card h5,
.comparison-card h4, .comparison-card h3, .comparison-card h5,
.overview-card h4, .overview-card h3, .overview-card h5 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
}

/* Ensure all text in these elements is light gray */
.method-card p, .method-card li, .method-card span,
.timeline-content p, .timeline-content li, .timeline-content span,
.company-type-card p, .company-type-card li, .company-type-card span,
.component-card p, .component-card li, .component-card span,
.step-item p, .step-item li, .step-item span,
.resource-card p, .resource-card li, .resource-card span,
.requirement-card p, .requirement-card li, .requirement-card span,
.principle-card p, .principle-card li, .principle-card span,
.tracking-card p, .tracking-card li, .tracking-card span,
.strategy-card p, .strategy-card li, .strategy-card span,
.tool-card p, .tool-card li, .tool-card span,
.area-card p, .area-card li, .area-card span,
.calculation-card p, .calculation-card li, .calculation-card span,
.comparison-card p, .comparison-card li, .comparison-card span,
.overview-card p, .overview-card li, .overview-card span {
    color: #94a3b8 !important;
}

/* Ensure all strong/bold text in these elements is white */
.method-card strong, .method-card b,
.timeline-content strong, .timeline-content b,
.company-type-card strong, .company-type-card b,
.component-card strong, .component-card b,
.step-item strong, .step-item b,
.resource-card strong, .resource-card b,
.requirement-card strong, .requirement-card b,
.principle-card strong, .principle-card b,
.tracking-card strong, .tracking-card b,
.strategy-card strong, .strategy-card b,
.tool-card strong, .tool-card b,
.area-card strong, .area-card b,
.calculation-card strong, .calculation-card b,
.comparison-card strong, .comparison-card b,
.overview-card strong, .overview-card b {
    color: #ffffff !important;
}

/* Fix Payment Timeline specifically */
.payment-timeline-section {
    margin: 3rem 0 !important;
}

.payment-timeline-section h4 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    margin-bottom: 2rem !important;
    font-size: 1.3rem !important;
}

.payment-timeline {
    background: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.timeline-step {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    width: 180px !important;
    height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.timeline-step:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 15px rgba(120, 198, 255, 0.15) !important;
}

.step-circle {
    background: rgba(120, 198, 255, 0.2) !important;
    border: 2px solid rgba(120, 198, 255, 0.4) !important;
    color: #78c6ff !important;
    backdrop-filter: blur(10px) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
    flex-shrink: 0 !important;
    order: 1 !important;
}

.timeline-step.active .step-circle {
    background: rgba(120, 198, 255, 0.3) !important;
    border-color: #78c6ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(120, 198, 255, 0.4) !important;
}

.timeline-step:not(.active) .step-circle {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #94a3b8 !important;
}

.timeline-step .step-content {
    display: contents !important;
}

.timeline-step h5 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    font-size: 1rem !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    text-align: center !important;
    order: 2 !important;
}

.timeline-step p {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    order: 3 !important;
}

.step-percentage {
    background: rgba(120, 198, 255, 0.8) !important;
    color: #ffffff !important;
    border: 1px solid rgba(120, 198, 255, 0.4) !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
    padding: 0.3rem 0.8rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    margin-top: 0.5rem !important;
    order: 4 !important;
}

.timeline-connector {
    background: linear-gradient(to right, rgba(120, 198, 255, 0.6), rgba(120, 198, 255, 0.2)) !important;
    box-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    height: 3px !important;
    width: 40px !important;
    border-radius: 2px !important;
    margin: 0 -10px !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
}

/* Mobile responsive for payment timeline */
@media (max-width: 768px) {
    .payment-timeline {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .timeline-step {
        min-width: 250px !important;
    }
    
    .timeline-connector {
        width: 3px !important;
        height: 30px !important;
        background: linear-gradient(to bottom, rgba(120, 198, 255, 0.6), rgba(120, 198, 255, 0.2)) !important;
        margin: -15px 0 !important;
    }
}

/* CONSISTENT SECTION HEADER FORMATTING */
.content-section h3,
.invoicing-process h3,
.cash-receipts h3,
.vat-considerations h3,
.payment-timeline-section h4,
.collection-strategies h4,
.invoice-methods h4,
.invoice-components h4,
.cash-workflow h4,
.vat-decision h4,
.accounting-fundamentals h3,
.company-governance h3,
.regulatory-compliance h3,
.lessons-learned h3,
.planning-process h3,
.continuous-improvement h3 {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    margin: 2.5rem 0 1.5rem 0 !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    line-height: 1.3 !important;
}

/* Subsection headers (h4 within main sections) */
.content-section h4,
.invoicing-process h4,
.cash-receipts h4,
.vat-considerations h4,
.accounting-fundamentals h4,
.company-governance h4,
.regulatory-compliance h4,
.lessons-learned h4,
.planning-process h4,
.continuous-improvement h4 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 2rem 0 1rem 0 !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    line-height: 1.3 !important;
}

/* Main chapter headers (h2) */
.content-section h2,
.section-header h2 {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 0 2rem 0 !important;
    text-shadow: 0 0 15px rgba(120, 198, 255, 0.4) !important;
    line-height: 1.2 !important;
}

/* Fix Budget vs Actual Analysis section specifically */
.comparison-card,
.calculation-card,
.calculation-breakdown,
.analysis-framework .comparison-card {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.comparison-card h5,
.calculation-card h5 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    margin-bottom: 1rem !important;
}

.calc-row {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    padding: 0.75rem 0 !important;
}

.calc-row span {
    color: #94a3b8 !important;
}

.calc-row strong {
    color: #ffffff !important;
}

.calc-row.variance-positive {
    background: rgba(120, 198, 255, 0.1) !important;
    color: #78c6ff !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
}

.calc-row.variance-positive span {
    color: #78c6ff !important;
}

.calc-row.variance-positive strong {
    color: #ffffff !important;
}

.tip-box {
    background: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
}

.tip-box p {
    color: #ffc107 !important;
    margin: 0 !important;
}

.tip-box strong {
    color: #ffffff !important;
}

/* Fix Continuous Improvement Cycle and Conclusion sections */
.continuous-improvement,
.improvement-cycle,
.conclusion {
    margin: 3rem 0 !important;
}

.cycle-diagram {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.cycle-step {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    width: 160px !important;
    height: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.cycle-step:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(120, 198, 255, 0.2) !important;
}

.cycle-step h4 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    font-size: 1rem !important;
    margin: 0 0 0.5rem 0 !important;
    font-weight: 600 !important;
}

.cycle-step p {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.cycle-arrow {
    color: #78c6ff !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    margin: 0 0.5rem !important;
}

.conclusion {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
}

.conclusion h3 {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(120, 198, 255, 0.4) !important;
    font-size: 1.6rem !important;
    margin-bottom: 1.5rem !important;
}

.success-message {
    background: transparent !important;
    padding: 0 !important;
}

.success-message p {
    color: #94a3b8 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

.success-message ul {
    list-style: none !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1rem !important;
    margin: 2rem 0 !important;
}

.success-message li {
    background: rgba(120, 198, 255, 0.1) !important;
    border: 1px solid rgba(120, 198, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 1rem 1.5rem !important;
    color: #78c6ff !important;
    font-weight: 500 !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.success-message li:hover {
    background: rgba(120, 198, 255, 0.15) !important;
    border-color: rgba(120, 198, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(120, 198, 255, 0.2) !important;
}

.success-message strong {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
}

@media (max-width: 768px) {
    .cycle-diagram {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .cycle-step {
        width: 200px !important;
        height: 120px !important;
    }
    
    .cycle-arrow {
        transform: rotate(90deg) !important;
    }
    
    .success-message ul {
        grid-template-columns: 1fr !important;
    }
}

/* Fix Learning Objectives section */
.learning-objectives {
    background: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: 4px solid rgba(120, 198, 255, 0.6) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.learning-objectives h4 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
}

.learning-objectives ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.learning-objectives li {
    color: #94a3b8 !important;
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    line-height: 1.5 !important;
    position: relative !important;
    padding-left: 2rem !important;
}

.learning-objectives li:last-child {
    border-bottom: none !important;
}

.learning-objectives li::before {
    content: "✓" !important;
    color: #78c6ff !important;
    font-weight: bold !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.8rem !important;
    font-size: 1rem !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.5) !important;
}

/* Fix Record Retention Timeline section */
.retention-timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: 4px solid rgba(120, 198, 255, 0.6) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    transition: all 0.3s ease !important;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-left-color: #78c6ff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.timeline-duration {
    background: rgba(120, 198, 255, 0.2) !important;
    color: #78c6ff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    border: 1px solid rgba(120, 198, 255, 0.4) !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    min-width: 80px !important;
    backdrop-filter: blur(10px) !important;
}

.timeline-content strong {
    color: #ffffff !important;
    font-weight: 600 !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.3) !important;
}

.timeline-content p {
    color: #94a3b8 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-size: 0.9rem !important;
}

/* Fix Transaction Analysis Framework step numbers specifically */
.transaction-analysis .step-number,
.analysis-steps .step-number {
    background: rgba(120, 198, 255, 0.2) !important;
    border: 2px solid rgba(120, 198, 255, 0.4) !important;
    color: #78c6ff !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    position: absolute !important;
    top: -20px !important;
    left: 1.5rem !important;
    backdrop-filter: blur(10px) !important;
    z-index: 2 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(120, 198, 255, 0.3) !important;
}

.transaction-analysis .step-card:hover .step-number,
.analysis-steps .step-card:hover .step-number {
    background: rgba(120, 198, 255, 0.3) !important;
    border-color: #78c6ff !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 16px rgba(120, 198, 255, 0.4) !important;
}

.transaction-analysis .step-card,
.analysis-steps .step-card {
    position: relative !important;
    margin-top: 0 !important;
    overflow: visible !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Make step-content transparent and just flow content directly */
.transaction-analysis .step-content,
.analysis-steps .step-content {
    display: contents !important;
}

/* Step number inside the box at top center */
.transaction-analysis .step-number,
.analysis-steps .step-number {
    background: rgba(120, 198, 255, 0.2) !important;
    border: 2px solid rgba(120, 198, 255, 0.4) !important;
    color: #78c6ff !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    backdrop-filter: blur(10px) !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(120, 198, 255, 0.3) !important;
    margin-bottom: 1rem !important;
    flex-shrink: 0 !important;
}

/* Style the content elements directly within step-card */
.transaction-analysis .step-card h4,
.analysis-steps .step-card h4 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    font-size: 1.1rem !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.transaction-analysis .step-card ul,
.analysis-steps .step-card ul {
    color: #94a3b8 !important;
    text-align: left !important;
    margin: 0 !important;
    padding-left: 1rem !important;
    width: 100% !important;
}

.transaction-analysis .step-card li,
.analysis-steps .step-card li {
    color: #94a3b8 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

/* Fix Accounting Equation - remove tacky colors */
.equation-breakdown {
    background: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    text-align: center !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.equation-part {
    background: rgba(120, 198, 255, 0.1) !important;
    background-image: none !important;
    border: 1px solid rgba(120, 198, 255, 0.2) !important;
    color: #ffffff !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    min-width: 120px !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.3) !important;
}

.equation-part.assets,
.equation-part.liabilities,
.equation-part.equity {
    background: rgba(120, 198, 255, 0.1) !important;
    background-image: none !important;
    border: 1px solid rgba(120, 198, 255, 0.2) !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.3) !important;
}

.equation-expanded .equation-part {
    background: rgba(120, 198, 255, 0.05) !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid rgba(120, 198, 255, 0.2) !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.3) !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
}

.equation-symbol {
    color: #78c6ff !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
}

.equation-explanation {
    background: transparent !important;
    color: #94a3b8 !important;
    margin: 1.5rem 0 !important;
    padding: 1rem !important;
    border-radius: 8px !important;
}

.equation-explanation p {
    color: #94a3b8 !important;
    margin: 0 !important;
}

/* Fix Journal Table text colors - make all text white */
.journal-table {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.journal-table th {
    color: #ffffff !important;
    background: rgba(120, 198, 255, 0.1) !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.3) !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.journal-table td {
    color: #ffffff !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1rem !important;
}

/* Override specific column colors to white */
.journal-table td:nth-child(4),
.journal-table td:nth-child(5) {
    color: #ffffff !important;
    text-align: right !important;
    font-weight: 600 !important;
}

/* Ensure all table text is white regardless of position */
.journal-table tbody td,
.journal-table thead th,
.journal-table tfoot td {
    color: #ffffff !important;
}

/* Override hover state */
.journal-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.journal-table tbody tr:hover td {
    color: #ffffff !important;
}

/* Fix Updates Page - remove all light boxes and apply glass morphism theme */

/* Intro box */
.intro-box {
    background: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Update cards */
.update-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 2rem !important;
}

.update-card h3 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
}

/* Old and new info boxes */
.old-info,
.new-info {
    background: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.old-info {
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-left: 4px solid rgba(239, 68, 68, 0.6) !important;
}

.new-info {
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-left: 4px solid rgba(16, 185, 129, 0.6) !important;
}

.old-info h4 {
    color: #f87171 !important;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.3) !important;
}

.new-info h4 {
    color: #10b981 !important;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.3) !important;
}

.old-info p,
.new-info p,
.old-info li,
.new-info li {
    color: #94a3b8 !important;
}

/* Impact, best practices, action items, digital resources boxes */
.impact,
.best-practices,
.action-items,
.digital-resources {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(120, 198, 255, 0.2) !important;
    border-left: 4px solid rgba(120, 198, 255, 0.6) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
}

.impact h4,
.best-practices h4,
.action-items h4,
.digital-resources h4 {
    color: #78c6ff !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.3) !important;
    margin-bottom: 1rem !important;
}

.impact p,
.best-practices p,
.action-items p,
.digital-resources p,
.impact li,
.best-practices li,
.action-items li,
.digital-resources li {
    color: #94a3b8 !important;
}

/* Example calculation box */
.example-calculation {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(120, 198, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin: 1rem 0 !important;
    backdrop-filter: blur(15px) !important;
}

.example-calculation h4 {
    color: #78c6ff !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.3) !important;
}

.calc-example {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.calc-line {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.calc-line.total {
    border-top: 2px solid #78c6ff !important;
    color: #ffffff !important;
}

/* Timeline content */
.timeline-content {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.timeline-content h4 {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.3) !important;
}

.timeline-content p {
    color: #94a3b8 !important;
}

.timeline-date {
    background: rgba(120, 198, 255, 0.8) !important;
    color: #ffffff !important;
    border: 1px solid rgba(120, 198, 255, 0.4) !important;
    backdrop-filter: blur(10px) !important;
}

.timeline-item.future .timeline-date {
    background: rgba(100, 116, 139, 0.8) !important;
}

/* Reference cards */
.reference-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.reference-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(120, 198, 255, 0.2) !important;
}

.reference-card h4 {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(120, 198, 255, 0.3) !important;
}

.reference-card p {
    color: #94a3b8 !important;
}

/* Priority badges and indicators */
.badge,
.priority-indicator {
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.priority-high,
.priority-indicator.high {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.priority-medium,
.priority-indicator.medium {
    background: rgba(251, 146, 60, 0.2) !important;
    color: #fb923c !important;
    border-color: rgba(251, 146, 60, 0.3) !important;
}

.priority-low,
.priority-indicator.low {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

/* Fix Implementation Timeline year bubbles - better positioning and readability */
.timeline-section {
    margin: 3rem 0 !important;
}

.timeline-section h2 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    margin-bottom: 2rem !important;
    font-size: 1.4rem !important;
}

.timeline {
    position: relative !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.timeline-item {
    position: relative !important;
    margin-bottom: 3rem !important;
    padding-left: 6rem !important;
    background: transparent !important;
}

.timeline-item::before {
    display: none !important;
}

.timeline-date {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    background: rgba(120, 198, 255, 0.8) !important;
    color: #ffffff !important;
    border: 2px solid rgba(120, 198, 255, 0.4) !important;
    border-radius: 50px !important;
    padding: 0.6rem 1.2rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(120, 198, 255, 0.3) !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
    z-index: 2 !important;
    white-space: nowrap !important;
    min-width: 4rem !important;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-left: 0 !important;
    position: relative !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.timeline-content:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(120, 198, 255, 0.2) !important;
}

.timeline-content h4 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3) !important;
    font-size: 1.1rem !important;
    margin: 0 0 0.8rem 0 !important;
    font-weight: 600 !important;
}

.timeline-content p {
    color: #94a3b8 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    font-size: 0.95rem !important;
}

.timeline-item.future .timeline-date {
    background: rgba(100, 116, 139, 0.8) !important;
    border-color: rgba(100, 116, 139, 0.4) !important;
    color: #94a3b8 !important;
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.3) !important;
}

/* Mobile responsive for implementation timeline */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 3rem !important;
        margin-bottom: 2rem !important;
    }
    
    .timeline-item::before {
        left: 1rem !important;
    }
    
    .timeline-date {
        left: -0.5rem !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
        min-width: 3rem !important;
    }
    
    .timeline-content {
        padding: 1rem !important;
        margin-left: 0 !important;
    }
}

/* Reference Summary Table Styles */
.reference-summary {
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.reference-summary h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3);
}

.reference-summary p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #94a3b8 !important;
}

.reference-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.reference-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: rgba(120, 198, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-item {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    color: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.header-item:last-child {
    border-right: none;
}

.account-header {
    text-align: left !important;
}

.debit-header {
    color: #4caf50 !important;
}

.credit-header {
    color: #ff9800 !important;
}

.reference-category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reference-category:last-child {
    border-bottom: none;
}

.balance-sheet-section {
    background: rgba(33, 150, 243, 0.1);
}

.income-statement-section {
    background: rgba(156, 39, 176, 0.1);
}

.category-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-title {
    padding: 1rem;
    font-weight: bold;
    color: #ffffff !important;
    text-align: left;
}

.balance-sheet-section .category-title {
    color: #64b5f6 !important;
}

.income-statement-section .category-title {
    color: #ba68c8 !important;
}

.category-spacer {
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.category-spacer:last-child {
    border-right: none;
}

.account-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-row:last-child {
    border-bottom: none;
}

.account-name {
    padding: 1rem;
    text-align: left;
    color: #94a3b8 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.account-name .indent {
    margin-left: 1.5rem;
    font-weight: 500;
}

.ref-number {
    font-size: 0.85rem;
    color: #78c6ff !important;
    margin-left: 0.5rem;
}

.effect-cell {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.effect-cell:last-child {
    border-right: none;
}

.effect-cell.debit-increase {
    background: rgba(76, 175, 80, 0.1);
}

.effect-cell.debit-decrease {
    background: rgba(244, 67, 54, 0.1);
}

.effect-cell.credit-increase {
    background: rgba(76, 175, 80, 0.1);
}

.effect-cell.credit-decrease {
    background: rgba(244, 67, 54, 0.1);
}

.effect-cell .arrow {
    font-size: 1.5rem;
    font-weight: bold;
}

.debit-increase .arrow,
.credit-increase .arrow {
    color: #4caf50 !important;
}

.debit-decrease .arrow,
.credit-decrease .arrow {
    color: #f44336 !important;
}

.reference-legend {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #78c6ff;
}

.reference-legend p {
    margin: 0.5rem 0;
    color: #94a3b8 !important;
    line-height: 1.6;
}

.reference-legend strong {
    color: #ffffff !important;
}

/* Responsive design for reference table */
@media (max-width: 768px) {
    .reference-summary {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .reference-header,
    .category-row,
    .account-row {
        grid-template-columns: 2fr 1fr 1fr;
        font-size: 0.9rem;
    }
    
    .header-item,
    .category-title,
    .account-name,
    .effect-cell {
        padding: 0.75rem 0.5rem;
    }
    
    .account-name .indent {
        margin-left: 1rem;
    }
    
    .effect-cell .arrow {
        font-size: 1.3rem;
    }
    
    .reference-legend {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Chart of Accounts Search Tool */
.chart-search-tool {
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.chart-search-tool h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3);
}

.chart-search-tool p {
    text-align: center;
    margin-bottom: 2rem;
    color: #94a3b8 !important;
    line-height: 1.6;
}

.search-container {
    display: grid;
    gap: 2rem;
}

.search-input-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

.search-field, .filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label, .filter-section label {
    font-weight: 500;
    color: #ffffff !important;
    font-size: 0.9rem;
}

.search-field input, .filter-section select {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-field input:focus, .filter-section select:focus {
    outline: none;
    border-color: #78c6ff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(120, 198, 255, 0.1);
}

.search-field input::placeholder {
    color: #94a3b8;
}

.filter-section select option {
    background: #1e293b;
    color: #ffffff;
}

.search-results {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.results-header {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    background: rgba(120, 198, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.result-column {
    padding: 1rem;
    color: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.result-column:last-child {
    border-right: none;
}

.results-header .result-column {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.result-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row .result-column {
    padding: 0.75rem 1rem;
    color: #94a3b8 !important;
    font-size: 0.9rem;
}

.result-row .account-number {
    font-weight: bold;
    color: #78c6ff !important;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.result-row .english-desc {
    color: #ffffff !important;
}

.result-row .swedish-desc {
    color: #e2e8f0 !important;
    font-style: italic;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #94a3b8 !important;
}

.no-results p {
    margin: 0;
    font-style: italic;
}

/* Highlight matching text */
mark {
    background: rgba(120, 198, 255, 0.3);
    color: #ffffff !important;
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: bold;
}

/* Responsive design for search tool */
@media (max-width: 768px) {
    .chart-search-tool {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .search-input-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-header,
    .result-row {
        grid-template-columns: 80px 1fr 1fr;
        font-size: 0.8rem;
    }
    
    .result-column {
        padding: 0.5rem;
    }
    
    .results-header .result-column {
        font-size: 0.7rem;
    }
    
    .search-results {
        max-height: 300px;
    }
    
    .chart-search-tool h3 {
        font-size: 1.2rem;
    }
    
    .chart-search-tool p {
        font-size: 0.9rem;
    }
}

/* BAS Chart Overview */
.bas-chart-overview {
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.bas-chart-overview h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3);
}

.bas-chart-overview p {
    text-align: center;
    margin-bottom: 2rem;
    color: #94a3b8 !important;
    line-height: 1.6;
}

.account-series-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.series-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: none;
    min-height: 140px;
    text-align: center;
}

.series-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.assets-series {
    border-left: 4px solid #4caf50;
}

.liabilities-series {
    border-left: 4px solid #ff9800;
}

.revenue-series {
    border-left: 4px solid #2196f3;
}

.expenses-series {
    border-left: 4px solid #f44336;
}

.series-header {
    margin-bottom: 0.8rem;
}

.series-header h4 {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #78c6ff !important;
    font-weight: bold;
}

.series-header h5 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff !important;
    font-weight: 600;
}

.assets-series .series-header h5 {
    color: #4caf50 !important;
}

.liabilities-series .series-header h5 {
    color: #ff9800 !important;
}

.revenue-series .series-header h5 {
    color: #2196f3 !important;
}

.expenses-series .series-header h5 {
    color: #f44336 !important;
}

.series-card p {
    margin-bottom: 0.8rem;
    color: #94a3b8 !important;
    font-size: 0.9rem;
    line-height: 1.4;
}

.series-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.series-examples span {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0 !important;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.assets-series .series-examples span {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.3);
}

.liabilities-series .series-examples span {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.3);
}

.revenue-series .series-examples span {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.3);
}

.expenses-series .series-examples span {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.3);
}

.bas-benefits {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.bas-benefits h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(120, 198, 255, 0.3);
}

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

.benefit-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8 !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

.benefit-item strong {
    color: #ffffff !important;
    display: block;
    margin-bottom: 0.3rem;
}

/* Responsive design for BAS overview */
@media (max-width: 768px) {
    .bas-chart-overview {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .account-series-grid {
        gap: 1rem;
    }
    
    .series-card {
        padding: 1rem;
        min-height: 120px;
    }
    
    .series-header h4 {
        font-size: 1rem;
    }
    
    .series-header h5 {
        font-size: 0.9rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .benefit-item {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}
