:root {
    --primary: #2c3e50;
    --secondary: #ff6b6b;
    --accent: #3d5a80;
    --light-bg: #f8f9fa;
    --teal: #4ecdc4;
    --border-color: #e0e0e0;
    --text-color: #000000;
    --text-light: #666;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

body {
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    color: #000;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 1.5rem;
    color: #000;
    border-bottom: 2px solid var(--teal);
    padding-bottom: 0.5rem;
    background-color: white;
}

h2 {
    font-size: 1.375rem;
    color: #ff6b6b;
    position: relative;
    padding-left: 10px;
}

h3 {
    font-size: 1.25rem;
    color: #000;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.125rem;
    color: #000;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.calculator-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calculator-header {
    background: white;
    color: var(--primary);
    padding: 1.25rem;
    text-align: center;
}

.calculator-body {
    padding: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-section {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    color: #000;
    transition: var(--transition);
}

.input-group input:focus, 
.input-group select:focus {
    border-color: var(--teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--teal);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #3db8af;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    flex: 1;
}

.btn-secondary:hover {
    background: #ff5252;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.results-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.result-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    border-left: 4px solid var(--teal);
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 0.5rem 0;
}

.result-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.warning {
    color: var(--secondary);
    font-weight: 600;
}

.success {
    color: var(--teal);
    font-weight: 600;
}

.chart-container {
    height: 300px;
    background: var(--light-bg);
    border-radius: var(--radius);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.chart-placeholder {
    text-align: center;
    color: var(--text-light);
    display: none;
}

.readiness-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.readiness-meter-container {
    position: relative;
    height: 40px;
    background: #e9ecef;
    border-radius: 20px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.readiness-meter-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffd166 50%, #06d6a0 100%);
    border-radius: 20px;
    transition: width 1.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.readiness-percentage {
    color: white;
    font-weight: bold;
    padding-right: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.readiness-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.readiness-status {
    text-align: center;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

.readiness-info {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid var(--teal);
}

.readiness-info h4 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: #000;
    display: flex;
    align-items: center;
}

.readiness-info h4 i {
    margin-right: 10px;
}

.readiness-info ul {
    padding-left: 20px;
    margin-top: 10px;
}

.readiness-info li {
    margin-bottom: 8px;
    color: #000;
}

.readiness-info .warning {
    color: #ff6b6b;
}

.readiness-info .success {
    color: #06d6a0;
}

.readiness-info .average {
    color: #ffd166;
}

.ad-zone {
    background: var(--light-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.ad-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    font-size: 0.7rem;
    color: #000;
    border-radius: 10px;
}

.ad-left, .ad-right, .ad-tablet, .ad-mobile {
    position: relative;
}

.ad-left {
    width: 300px;
    height: 250px;
}

.ad-right {
    width: 300px;
    height: 600px;
}

.ad-tablet {
    width: 300px;
    height: 250px;
    margin: 10px auto 0;
}

.ad-mobile {
    width: 320px;
    height: 100px;
    margin: 0 auto;
}

.sidebar {
    display: none;
}

.related-tools {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.tools-list {
    list-style: none;
    margin-top: 1rem;
}

.tools-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: #000;
}

.tools-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tools-list a {
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.tools-list a:hover {
    color: var(--teal);
    text-decoration: underline;
}

.tools-list i {
    margin-right: 10px;
    color: var(--teal);
}

.breakdown-container {
    margin: 2rem 0;
    overflow-x: auto;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
}

.breakdown-table th {
    background: var(--accent);
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-size: 1rem;
}

.breakdown-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: #000;
}

.breakdown-table tr:nth-child(even) {
    background: var(--light-bg);
}

.breakdown-table tr:hover {
    background: rgba(78, 205, 196, 0.1);
}

.advanced-options {
    background: #e8f4f8;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid var(--teal);
}

.toggle-advanced {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 600;
}

.toggle-advanced i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.advanced-content {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.advanced-content.show {
    display: grid;
}

.advanced-content .input-group {
    margin-bottom: 0.75rem;
}

.export-options {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.scenario-section {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.scenario-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.scenario-tab {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    color: #000;
}

.scenario-tab.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.scenario-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.scenario-result {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.scenario-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #000;
}

.scenario-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
}

@media print {
    body * {
        visibility: hidden;
    }
    .calculator-container, .calculator-container * {
        visibility: visible;
    }
    .calculator-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .form-actions, .ad-zone, .sidebar, .related-tools, .export-options button {
        display: none !important;
    }
    .readiness-meter-container {
        background: #e9ecef !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .readiness-meter-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.breadcrumb {
    padding: 0px 10px;
    color: #000;
    margin-bottom: 5px;
    font-size: 1rem;
}

.breadcrumb a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h2 {
        font-size: 1.25rem;
        color: #ff6b6b;
    }
    
    h3 {
        font-size: 1.125rem;
        color: #000;
    }
    
    h4 {
        font-size: 1rem;
        color: #000;
    }
    
    .ad-mobile, .ad-left, .ad-right {
        display: none;
    }
    
    .ad-tablet {
        display: flex;
    }
    
    .form-actions {
        justify-content: center;
    }
    
    .btn {
        flex: 0 1 auto;
    }
    
    .advanced-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scenario-tab {
        font-size: 1rem;
    }
}

@media (min-width: 1025px) {
    .main-content {
        grid-template-columns: 300px 1fr 300px;
    }
    
    .sidebar {
        display: block;
    }
    
    .ad-left, .ad-right {
        display: flex;
    }
    
    .ad-tablet, .ad-mobile {
        display: none;
    }
    
    .sticky {
        position: sticky;
        top: 24px;
    }
    
    .related-tools.desktop {
        display: none;
    }
    
    .scenario-tab {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.25rem;
        color: #000;
    }
    
    h2 {
        font-size: 1.125rem;
        color: #ff6b6b;
    }
    
    h3 {
        font-size: 1rem;
        color: #000;
    }
    
    h4 {
        font-size: 0.9375rem;
        color: #000;
    }
    
    .ad-tablet, .ad-left, .ad-right {
        display: none;
    }
    
    .ad-mobile {
        display: flex;
        margin-top: 10px;
    }
    
    .scenario-tab {
        font-size: 0.875rem;
    }
}

.mobile-table {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #eee;
    border-radius: 8px;
}

.mobile-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.mobile-table th, .mobile-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mobile-table th {
    background-color: #4ecdc4;
    font-weight: bold;
    font-size: 1rem;
    color: white;
}

.mobile-table td {
    color: #000;
}

.mobile-table tr:nth-child(even) {
    background-color: #fafafa;
}