:root {
    --primary: #009688;
    --primary-dark: #00796b;
    --secondary: #6c757d;
    --accent: #FFB703;
    --text-dark: #2F3542;
    --text-light: #6B7280;
    --background: #F8FAFC;
    --card-bg: #FFFFFF;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
}

body {
    font-family: "Noto Sans Thai", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    padding-bottom: 50px;
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.navbar-brand i {
    color: var(--primary);
}

/* Language Switcher */
.language-switcher {
    display: flex;
}

.language-switcher button {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
}

.language-switcher button:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.language-switcher button:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.language-switcher button.active {
    background-color: var(--primary);
    color: white;
    font-weight: 500;
}

.language-switcher button:not(.active) {
    background-color: #e2e8f0;
    color: #64748b;
}

.language-switcher button:hover:not(.active) {
    background-color: #d1d5db;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.hero .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Feature Cards */
.features {
    padding: 4rem 0;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Card Styles for All Sections */
.calculator-card, .history-card, .section-card, .results-container, .extra-payment-card, .compare-card, .summary-card, .chart-card, .amortization-card, .extra-payment-card, .comparison-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card {
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
}

.calculator-header, .history-header, .extra-payment-header, .compare-header, .summary-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.calculator-header h2, .history-header h2, .extra-payment-header h2, .compare-header h2, .summary-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.calculator-header p, .history-header p, .extra-payment-header p, .compare-header p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-control, .form-select {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.25);
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Summary Section */
.summary-item {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease;
}

.summary-item:hover {
    transform: translateY(-3px);
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.summary-item.highlight {
    background-color: rgba(0, 150, 136, 0.1);
}

.summary-item.highlight .summary-value {
    color: var(--primary-dark);
}

.summary-item.highlight-secondary {
    background-color: rgba(255, 183, 3, 0.1);
}

.summary-item.highlight-secondary .summary-value {
    color: var(--accent);
}

/* Chart Card */
.chart-card {
    padding: 1.5rem;
}

.chart-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Amortization Table */
.amortization-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.pagination .page-item .page-link {
    color: var(--primary);
    border-color: #e2e8f0;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

.pagination .page-item .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

.pagination-summary {
    text-align: center;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Extra Payment Section */
.extra-payment-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Comparison Section */
.comparison-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.comparison-column {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
    transition: transform 0.2s ease;
}

.comparison-column:hover {
    transform: translateY(-3px);
}

.comparison-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comparison-label {
    color: var(--text-light);
}

.comparison-value {
    font-weight: 600;
    color: var(--text-dark);
}

.highlight-column {
    background-color: rgba(0, 150, 136, 0.1);
}

.highlight-column h4 {
    color: var(--primary-dark);
    border-bottom-color: rgba(0, 150, 136, 0.3);
}

.highlight-column .comparison-value {
    color: var(--primary-dark);
}

.savings-summary {
    background-color: rgba(16, 185, 129, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.savings-summary:hover {
    transform: translateY(-3px);
}

.savings-summary h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--success);
}

.savings-item {
    text-align: center;
    padding: 1rem;
}

.savings-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.savings-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

/* Loan Detail Items */
.loan-detail-item {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    height: 100%;
    transition: transform 0.2s ease;
}

.loan-detail-item:hover {
    transform: translateY(-3px);
}

.loan-detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.loan-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Comparison Items */
.comparison-item-card {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-item-name {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-item-details {
    color: var(--text-light);
    font-size: 0.9rem;
}

.empty-comparison {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* History Item Styles */
.history-item {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8fafc;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: white;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.history-item-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.history-item-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.history-item-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.empty-history {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-style: italic;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    transition: all 0.2s ease;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    transition: all 0.2s ease;
}

.btn-success:hover {
    background-color: #0da271;
    border-color: #0da271;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    transition: all 0.2s ease;
}

.btn-warning:hover {
    background-color: #e69008;
    border-color: #e69008;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-info {
    background-color: var(--info);
    border-color: var(--info);
    transition: all 0.2s ease;
}

.btn-info:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Action Buttons Container */
.action-buttons-container {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-top: 1px solid #eee;
}

.action-buttons-container .btn {
    font-weight: 500;
    padding: 0.75rem 0;
}

/* Print Styles */
@media print {
    body {
        visibility: hidden;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    #print-content {
        visibility: visible;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    #print-content * {
        visibility: visible;
    }
    
    .print-header {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .print-header h1 {
        font-size: 24pt;
        color: #009688;
        margin-bottom: 5px;
    }
    
    .print-header h2 {
        font-size: 16pt;
        color: #333;
    }
    
    .print-summary {
        margin-bottom: 20px;
    }
    
    .print-summary .summary-item {
        border: 1px solid #e2e8f0;
        margin-bottom: 10px;
    }
    
    .print-summary .summary-item.highlight {
        background-color: rgba(0, 150, 136, 0.1) !important;
    }
    
    .print-summary .summary-item.highlight-secondary {
        background-color: rgba(255, 183, 3, 0.1) !important;
    }
    
    .print-schedule {
        margin-bottom: 20px;
    }
    
    .print-schedule h3 {
        font-size: 16pt;
        color: #009688;
        margin-bottom: 10px;
    }
    
    .print-schedule table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .print-schedule th {
        background-color: #f8fafc !important;
        color: #009688;
        font-weight: bold;
        text-align: left;
        padding: 8px;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .print-schedule td {
        padding: 8px;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .print-schedule tr:nth-child(even) {
        background-color: #f8fafc !important;
    }
    
    .print-footer {
        margin-top: 30px;
        text-align: center;
        font-size: 9pt;
        color: #6c757d;
    }
    
    .print-conclusion h3 {
        font-size: 16pt;
        color: #009688;
        margin-bottom: 10px;
    }
    
    .print-comparison table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    
    .print-comparison th {
        background-color: #f8fafc !important;
        color: #009688;
        font-weight: bold;
        text-align: left;
        padding: 8px;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .print-comparison td {
        padding: 8px;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .print-comparison .table-primary {
        background-color: rgba(0, 150, 136, 0.1) !important;
    }
    
    /* Hide pagination when printing */
    .pagination, .pagination-summary {
        display: none !important;
    }
    
    /* Ensure table headers are repeated on each page */
    table thead {
        display: table-header-group;
    }
    
    /* Keep rows together when possible */
    table tr {
        page-break-inside: avoid;
    }
    
    /* Adjust font sizes for print */
    body {
        font-size: 10pt;
    }
    
    .print-header h1 {
        font-size: 18pt;
    }
    
    .print-header h2 {
        font-size: 14pt;
    }
    
    /* Add page numbers */
    @page {
        margin: 1cm;
    }
}

/* How to section */
.how-to-use {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.how-to-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--box-shadow);
    position: relative;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.how-to-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    font-weight: 700;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.how-to-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* FAQ section */
.faq-section {
    padding: 5rem 0;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-dark);
    background-color: rgba(0, 150, 136, 0.1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 150, 136, 0.25);
}

/* CTA section */
.cta-section {
    background-color: rgba(0, 150, 136, 0.1);
}

/* Footer */
.footer {
    background-color: #1a202c;
}

.footer h3, .footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a:hover {
    color: var(--primary) !important;
    text-decoration: none;
}

/* Special Payment Container */
#special-payments, #step-rates {
    margin-bottom: 1rem;
}

.payment-item, .rate-item {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    position: relative;
    transition: transform 0.2s ease;
}

.payment-item:hover, .rate-item:hover {
    transform: translateY(-3px);
}

.payment-item .remove-btn, .rate-item .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.875rem;
}

/* Toast */
.toast-container {
    z-index: 1060;
}

.toast {
    width: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* Selling Points */
.selling-points {
    background-color: #f8fafc;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: transform 0.3s;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ไอคอนแต่ละประเภท */
.privacy-icon {
    background-color: rgba(0, 150, 136, 0.1);
    color: var(--primary);
}

.free-icon {
    background-color: #ECFDF5;
    color: #10B981;
}

.instant-icon {
    background-color: #FEF3C7;
    color: #F59E0B;
}

.complex-icon {
    background-color: #F3F4F6;
    color: #4B5563;
}

.qr-icon {
    background-color: #FFFBEB;
    color: #D97706;
}

.share-icon {
    background-color: rgba(0, 150, 136, 0.1);
    color: var(--primary);
}

.language-icon {
    background-color: #F5F3FF;
    color: #7C3AED;
}

.history-icon {
    background-color: #FEE2E2;
    color: #EF4444;
}

/* Section Title */
.section-title {
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-title .lead {
    color: var(--text-light);
}

/* Conclusions section */
.conclusions-list {
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.conclusion-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.conclusion-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.conclusion-recommendation {
    background-color: rgba(0, 150, 136, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Navbar tab styles */
.nav-tabs .nav-link {
    color: var(--text-dark);
    border: 1px solid transparent;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 2px solid var(--primary);
}

/* Table styles for side-by-side comparison */
.table-bordered thead.table-primary th {
    background-color: rgba(0, 150, 136, 0.1) !important;
    color: var(--primary-dark);
    border-color: rgba(0, 150, 136, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .calculator-card, .history-card, .section-card, .summary-card, .chart-card, .amortization-card {
        padding: 1.5rem;
    }
    
    .summary-item {
        margin-bottom: 1rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .how-to-card {
        margin-bottom: 2rem;
    }
    
    .language-switcher {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .cta-buttons .btn-outline-primary {
        margin-left: 0 !important;
    }
    
    .calculator-card, .history-card, .section-card, .summary-card, .chart-card, .amortization-card {
        padding: 1rem;
    }
    
    .comparison-column {
        margin-bottom: 1rem;
    }
    
    .action-buttons-container {
        padding: 0.75rem;
    }
    
    .action-buttons-container .btn {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Fixed issues with input groups */
.input-group .form-control {
    z-index: 0;
}

.input-group-text {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary);
}

/* Improved Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    white-space: nowrap;
}

/* Print-only container fix */
#print-container {
    position: absolute;
    visibility: hidden;
    height: 0;
    width: 0;
    overflow: hidden;
}

.nav-item {
    transition: all 0.2s ease;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-link.active {
    font-weight: 600;
    color: var(--primary-dark) !important;
}

/* Update table-primary color for bootstrap */
.table-primary {
    background-color: rgba(0, 150, 136, 0.1) !important;
}

.table-primary td, .table-primary th {
    background-color: rgba(0, 150, 136, 0.1) !important;
}

/* Success badge background update to match theme */
.badge.bg-success {
    background-color: var(--primary) !important;
}