/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    margin-bottom: 2rem;
}

/* Calculator and Blog Cards */
.calculator-card, .blog-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.calculator-card:hover, .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--dark-color);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: var(--dark-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Footer */
footer {
    margin-top: 3rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--warning-color);
}

/* Calculator Page Specific */
.calculator-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.calculator-form input, .calculator-form select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
}

.calculator-form input:focus, .calculator-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-calculate {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn-calculate:hover {
    background-color: #0b5ed7;
}

.result-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.calculator-chart {
    width: 800px;
    height: 600px;
    min-height: 600px;
    border-radius: 1px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    background-color: white;
    padding: 0.1rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Blog Page Specific */
.blog-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-content {
    line-height: 1.8;
}

.blog-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .calculator-container, .blog-container {
        margin: 1rem;
        padding: 1rem;
    }
}

/* Additional styling for calculator results */
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

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

.result-label {
    font-weight: 500;
}

.result-value {
    font-weight: 600;
}

/* Amortization table */
.amortization-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

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

.amortization-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

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

/* Chart container for visualizations */
.chart-container {
    margin: 2rem 0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
