/* Bootstrap Variables & Custom Styling */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    padding: 80px 0 !important;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.3);
}

/* Feature Cards */
.features-section {
    padding: 60px 0 !important;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #e7f1ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0d6efd;
}

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Step Cards */
.steps-section {
    padding: 60px 0 !important;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    height: 100%;
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.step-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: #0d6efd !important;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e7f1ff 100%);
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.page-header .lead {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Installation Steps */
.installation-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.installation-steps li {
    counter-increment: step-counter;
    padding-left: 50px;
    margin-bottom: 25px;
    position: relative;
}

.installation-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.installation-steps strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.installation-steps .text-muted {
    margin: 0;
}

/* Setup Cards */
.setup-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.setup-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.setup-card h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #0d6efd;
}

.setup-card p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Example Box */
.example-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #198754;
    margin: 20px 0;
}

.example-box p {
    margin: 8px 0;
    font-size: 0.95rem;
}

/* Strategy Card */
.strategy-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.strategy-card.border-left-primary {
    border-left: 5px solid #0d6efd;
}

.strategy-card.border-left-warning {
    border-left: 5px solid #ffc107;
}

.strategy-card.border-left-info {
    border-left: 5px solid #0dcaf0;
}

.strategy-card.border-left-danger {
    border-left: 5px solid #dc3545;
}

.strategy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.strategy-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.strategy-header h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.strategy-header .badge {
    height: fit-content;
}

.strategy-card h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.strategy-card ol, .strategy-card ul {
    margin: 10px 0 20px;
    padding-left: 20px;
}

.strategy-card li {
    margin: 8px 0;
    color: var(--text-dark);
}

/* Calculation Box */
.calculation-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}

.calculation-box p {
    margin: 8px 0;
    color: var(--text-dark);
}

.calculation-box p:nth-child(odd) {
    font-weight: 600;
}

/* Metric Card (Dashboard) */
.metric-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metric-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.metric-card .lead {
    color: var(--text-light);
    margin-bottom: 20px;
}

.metric-badge {
    display: inline-block;
    background: #0d6efd;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.metric-card h5, .metric-card h6 {
    color: var(--text-dark);
    font-weight: 600;
}

/* Financial Results */
.strategy-result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.metric {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.metric span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.metric strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text-dark);
}

/* Example Section */
.example-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.example-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* Navbar Customization */
.navbar-dark {
    background: linear-gradient(135deg, #212529 0%, #1a1d20 100%) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin-left: 10px;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #1a1d20 100%) !important;
    color: white;
    margin-top: 60px;
}

footer p {
    margin-bottom: 5px;
}

footer small {
    opacity: 0.8;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 600;
}

.accordion-button:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Tables */
.table {
    background: white;
}

.table thead.table-dark {
    background: var(--text-dark) !important;
}

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

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 20px;
}

.alert-info {
    background: #e7f1ff;
    color: #0c5ec7;
    border-left: 4px solid #0d6efd;
}

.alert-success {
    background: #d1f2eb;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-warning {
    background: #fff3cd;
    color: #664d03;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
}

/* Badges */
.badge {
    padding: 8px 12px;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0d6efd;
    border: none;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        height: 200px;
        font-size: 80px;
        margin-top: 30px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .metric-card h3 {
        font-size: 1.4rem;
    }

    .strategy-card {
        padding: 20px;
    }

    .result-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .installation-steps li {
        padding-left: 45px;
    }

    .setup-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .result-metrics {
        grid-template-columns: 1fr;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 10px 0 !important;
    }
}

/* Utility Classes */
.sticky-top {
    z-index: 1020;
}

.text-muted {
    color: var(--text-light) !important;
}

code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    color: #d63384;
    font-family: 'Courier New', monospace;
}
