/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dark Mode Overrides */
.dark-mode {
    /* Bootstrap dark mode overrides */
    --bs-body-bg: #0a0a0a;
    --bs-body-color: #ffffff;
    --bs-border-color: #404040;
    --bs-link-color: #8b9eff;
    --bs-link-hover-color: #7c8eff;
    --bs-primary: #8b9eff;
    --bs-primary-rgb: 139, 158, 255;
    --bs-secondary: #a0a0a0;
    --bs-secondary-rgb: 160, 160, 160;
    --bs-success: #22c55e;
    --bs-success-rgb: 34, 197, 94;
    --bs-danger: #ef4444;
    --bs-danger-rgb: 239, 68, 68;
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-info: #3b82f6;
    --bs-info-rgb: 59, 130, 246;
    --bs-light: #1a1a1a;
    --bs-light-rgb: 26, 26, 26;
    --bs-dark: #ffffff;
    --bs-dark-rgb: 255, 255, 255;
}

.dark-mode body {
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.dark-mode .calculator-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.dark-mode .educational-content {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #533483 100%);
}

.dark-mode .calculator-wrapper {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 0 1px rgba(139, 158, 255, 0.1);
}

.dark-mode .calculator-form {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
}

.dark-mode .calculator-results {
    background: linear-gradient(145deg, #16213e 0%, #0f3460 100%);
    border-top: 1px solid #404040;
}

.dark-mode .debt-entry {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #404040;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dark-mode .form-group input,
.dark-mode .form-control,
.dark-mode .form-select {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 2px solid #404040;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.dark-mode .form-group input::placeholder,
.dark-mode .form-control::placeholder {
    color: #808080;
}

.dark-mode .form-group input:focus,
.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2), inset 0 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
}

/* Dark mode select dropdown styling */
.dark-mode .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Dark mode select dropdown options */
.dark-mode .form-select option {
    background-color: #1a1a2e;
    color: #ffffff;
}

/* Additional select styling for better dark mode compatibility */
.dark-mode select {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
}

.dark-mode select option {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
}

.dark-mode select option:hover {
    background-color: #16213e !important;
}

.dark-mode select option:checked {
    background-color: #8b9eff !important;
    color: #ffffff !important;
}

/* Override Bootstrap's default select styling for dark mode */
.dark-mode select.form-select {
    background-color: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #ffffff;
    border-color: #404040;
    position: relative;
}

/* Ensure the dropdown arrow is visible in dark mode */
.dark-mode .form-select:not([size]):not([multiple]) {
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: right;
    background-position-x: 97%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Dark mode input group styles */
.dark-mode .form-group .input-group .form-control {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 2px solid #404040;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.dark-mode .form-group .input-group .form-control:focus {
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2), inset 0 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    z-index: 3;
}

.dark-mode .form-group .input-group .input-group-text {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #404040;
    color: #ffffff;
}

.dark-mode .form-group .input-group:focus-within .input-group-text {
    border-color: #8b9eff;
}

.dark-mode .input-group-text {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #404040;
    color: #ffffff;
}

.dark-mode .risk-tolerance label {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #404040;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dark-mode .risk-tolerance label:hover {
    background: linear-gradient(145deg, #16213e 0%, #0f3460 100%);
    border-color: #8b9eff;
    box-shadow: 0 4px 12px rgba(139, 158, 255, 0.2);
}

.dark-mode .risk-tolerance input[type="radio"] {
    margin: 0;
}

.dark-mode .results-summary {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.dark-mode .result-item {
    background: linear-gradient(145deg, #16213e 0%, #0f3460 100%);
    border: 1px solid #404040;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dark-mode .recommendation-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dark-mode .content-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #8b9eff 0%, #6c7bff 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dark-mode-toggle {
    color: white !important;
}

.dark-mode-toggle .moon-icon {
    display: none;
}

.dark-mode .dark-mode-toggle .sun-icon {
    display: none;
}

.dark-mode .dark-mode-toggle .moon-icon {
    display: block;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-menu .active a {
    border-bottom: 2px solid white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #8b9eff 0%, #6c7bff 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.social-proof {
    background: rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.dark-mode .social-proof {
    background: rgba(255,255,255,0.15);
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background: #ffffff;
    transition: background-color 0.3s ease;
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.calculator-header {
    background: linear-gradient(135deg, #8b9eff 0%, #6c7bff 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.calculator-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.calculator-form {
    padding: 2rem;
}

/* Bootstrap Form Components */
.calculator-form .form-control,
.calculator-form .form-select {
    width: 100%;
}

.calculator-form .form-check {
    margin-bottom: 0.5rem;
}

.calculator-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
    transition: color 0.3s ease;
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #212529;
    transition: border-color 0.3s, background-color 0.3s ease, color 0.3s ease;
}

/* Fix input group alignment */
.form-group .input-group {
    height: auto;
    flex-wrap: nowrap;
}

.form-group .input-group .form-control {
    border: 2px solid #dee2e6;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #ffffff;
    color: #212529;
    transition: border-color 0.3s, background-color 0.3s ease, color 0.3s ease;
}

.form-group .input-group .form-control:focus {
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
    z-index: 3;
}

.form-group .input-group .input-group-text {
    border: 2px solid #dee2e6;
    border-right: none;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
    border-radius: 8px 0 0 8px;
    transition: border-color 0.3s ease;
}

.form-group .input-group .input-group-text:first-child {
    border-right: none;
}

.form-group .input-group .input-group-text:last-child {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.form-group .input-group:focus-within .input-group-text {
    border-color: #8b9eff;
}

/* Fix for input groups with suffix (like Interest Rate %) */
.form-group .input-group .form-control:not(:last-child) {
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.form-group .input-group .form-control:last-child {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.form-group input::placeholder {
    color: #6c757d;
}

.form-group input:focus {
    outline: none;
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
}

.debt-entry {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid #dee2e6;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.risk-tolerance {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.risk-tolerance label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s;
    color: #212529;
    background-color: #ffffff;
}

.risk-tolerance label:hover {
    border-color: #8b9eff;
    background: #f8f9fa;
}

.risk-tolerance input[type="radio"] {
    margin: 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #8b9eff 0%, #a855f7 100%);
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 158, 255, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.remove-debt {
    background: #6c757d;
    color: white;
}

.remove-debt:hover {
    background: #5a6268;
}

/* Calculator Results */
.calculator-results {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.results-summary {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.results-summary h3 {
    color: #212529;
    transition: color 0.3s ease;
}

.results-summary p {
    color: #495057;
    transition: color 0.3s ease;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-item {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.result-item .value {
    font-size: 2rem;
    font-weight: 700;
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.result-item .label {
    color: #495057;
    font-weight: 500;
    transition: color 0.3s ease;
}

.recommendations {
    margin-top: 2rem;
}

.recommendations h3 {
    color: #212529;
    transition: color 0.3s ease;
}

.recommendation-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #8b9eff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.recommendation-card h4 {
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.recommendation-card p {
    color: #495057;
    transition: color 0.3s ease;
}

.affiliate-link {
    display: inline-block;
    background: #22c55e;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s;
}

.affiliate-link:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

/* Educational Content */
.educational-content {
    padding: 4rem 0;
    background: #f8f9fa;
    transition: background-color 0.3s ease;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .content-card h3 {
    color: #dee2e6;
}

.content-card h3 {
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.content-card ul {
    list-style: none;
    margin-top: 1rem;
}

.dark-mode .content-card li {
    color: #dee2e6;
}

.dark-mode .estimates-table table tfoot tr td {
    color: #dee2e6;
}

.dark-mode .content-card li, .dark-mode .alert-warning p {
    color: #dee2e6;
}

.content-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
    transition: border-color 0.3s ease;
    color: #212529;
}

.content-card li:before {
    content: "✓";
    color: #22c55e;
    font-weight: bold;
    margin-right: 0.5rem;
}

.content-card p {
    color: #495057;
    transition: color 0.3s ease;
}

.blog-preview {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.blog-preview:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-preview h4 {
    margin-bottom: 0.5rem;
    color: #212529;
    transition: color 0.3s ease;
}

.blog-preview a {
    color: #8b9eff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-preview a:hover {
    text-decoration: underline;
}

.trust-signals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.signal .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #8b9eff;
}

.signal .label {
    color: #495057;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Footer */
.site-footer {
    background: #343a40;
    color: #f8f9fa;
    padding: 3rem 0 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode .site-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #8b9eff;
}

.dark-mode .footer-section h3, 
.dark-mode .footer-section h4 {
    color: #8b9eff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.dark-mode .footer-section a {
    color: #cccccc;
}

.footer-section a:hover {
    color: #f8f9fa;
}

.dark-mode .footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #6c757d;
    padding-top: 1rem;
    text-align: center;
    color: #adb5bd;
}

.dark-mode .footer-bottom {
    border-top: 1px solid #444444;
    color: #aaaaaa;
}

.disclaimer {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.dark-mode .disclaimer {
    color: #aaaaaa;
}

/* Timeline Section */
.timeline h3 {
    color: #212529;
    transition: color 0.3s ease;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message.success {
    background: #22c55e;
    color: white;
    border: 1px solid #22c55e;
}

.message.error {
    background: #ef4444;
    color: white;
    border: 1px solid #ef4444;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #dee2e6;
    border-top: 3px solid #8b9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* New Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-methods {
    margin-top: 1.5rem;
}

.contact-method {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.dark-mode .contact-method {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
}

.contact-method h3 {
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.dark-mode .contact-method h3 {
    color: #8b9eff;
}

/* Contact Form Enhancements */
.contact-form .calculator-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.dark-mode .contact-form .calculator-form {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
}

.contact-form textarea {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #212529;
    transition: border-color 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

.dark-mode .contact-form textarea {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 2px solid #404040;
    color: #ffffff;
}

.contact-form textarea:focus {
    outline: none;
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
}

.dark-mode .contact-form textarea:focus {
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
}

.contact-form select {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #212529;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.dark-mode .contact-form select {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 2px solid #404040;
    color: #ffffff;
}

.contact-form select:focus {
    outline: none;
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
}

.dark-mode .contact-form select:focus {
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
}

/* Button Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.faq-categories {
    margin: 2rem 0;
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category h2 {
    color: #8b9eff;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 158, 255, 0.3);
    padding-bottom: 0.5rem;
}

.dark-mode .faq-category h2 {
    color: #8b9eff;
    border-bottom-color: rgba(139, 158, 255, 0.3);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.dark-mode .faq-item {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
}

.faq-item h3 {
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.dark-mode .faq-item h3 {
    color: #8b9eff;
}

.faq-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-contact {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.dark-mode .faq-contact {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
}

.faq-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.last-updated {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 2rem;
}

.dark-mode .last-updated {
    color: #808080;
}

/* FAQ Search Styles */
.faq-search {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #212529;
    transition: border-color 0.3s ease;
}

.dark-mode .search-input {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 2px solid #404040;
    color: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
}

.dark-mode .search-input:focus {
    border-color: #8b9eff;
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
}

.search-results {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.dark-mode .search-results {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
}

/* FAQ Expandable Styles */
.faq-item h3 {
    color: #8b9eff;
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 2rem;
}

.faq-item h3::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-item h3.expanded::after {
    transform: rotate(180deg);
}

.faq-item h3:hover {
    color: #6c7bff;
}

.dark-mode .faq-item h3:hover {
    color: #a855f7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dark-mode-toggle {
        width: 35px;
        height: 35px;
    }
    
    .trust-signals {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-highlights {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .strategy-options {
        grid-template-columns: 1fr;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-debt {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Debt Payoff Calculator Styles */
.hero-section {
    text-align: center;
    padding: 2rem 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dark-mode .hero-subtitle {
    color: #212529;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.dark-mode .stat-number {
    color: #8b9eff;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode .stat-label {
    color: #adb5bd;
}

.calculator-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

.dark-mode .calculator-container {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.dark-mode .form-header h2 {
    color: #8b9eff;
}

.debt-entry {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.dark-mode .debt-entry {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.debt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.debt-header h3 {
    color: #8b9eff;
    margin: 0;
}

.dark-mode .debt-header h3 {
    color: #8b9eff;
}

.remove-debt {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.remove-debt:hover {
    background: #dc2626;
}

.add-debt-section {
    text-align: center;
    margin: 2rem 0;
}

.add-debt-section .btn-secondary {
    background: #e9ecef;
    color: #495057;
    border: 2px dashed #adb5bd;
    padding: 1rem 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dark-mode .add-debt-section .btn-secondary {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    color: #adb5bd;
    border-color: #404040;
}

.add-debt-section .btn-secondary:hover {
    background: #dee2e6;
    border-color: #8b9eff;
}

.dark-mode .add-debt-section .btn-secondary:hover {
    background: linear-gradient(145deg, #16213e 0%, #1a1a2e 100%);
    border-color: #8b9eff;
}

.payment-section,
.strategy-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.dark-mode .payment-section,
.dark-mode .strategy-section {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.strategy-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.strategy-option {
    display: block;
    cursor: pointer;
}

.strategy-option input[type="radio"] {
    display: none;
}

.strategy-content {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dark-mode .strategy-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-color: #404040;
}

.strategy-option input[type="radio"]:checked + .strategy-content {
    border-color: #8b9eff;
    background: rgba(139, 158, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
}

.dark-mode .strategy-option input[type="radio"]:checked + .strategy-content {
    border-color: #8b9eff;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 0 0 3px rgba(139, 158, 255, 0.2);
}

.strategy-content h4 {
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.dark-mode .strategy-content h4 {
    color: #8b9eff;
}

.strategy-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.dark-mode .strategy-content p {
    color: #adb5bd;
}

/* Results Styles */
.results-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark-mode .results-container {
    background: #1a1a1a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    color: #8b9eff;
    margin: 0;
}

.dark-mode .results-header h2 {
    color: #8b9eff;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.card-content h4 {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content .value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

.dark-mode .summary-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.dark-mode .summary-card h4 {
    color: #adb5bd;
}

.dark-mode .summary-card .value {
    color: #8b9eff;
}

.strategy-comparison {
    margin-bottom: 3rem;
}

.strategy-comparison h3 {
    color: #8b9eff;
    margin-bottom: 1rem;
}

.dark-mode .strategy-comparison h3 {
    color: #8b9eff;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.dark-mode .comparison-table table {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
}

.comparison-table th {
    background: #8b9eff;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.dark-mode .comparison-table th {
    background: #8b9eff;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.dark-mode .comparison-table td {
    border-bottom-color: #404040;
    color: #adb5bd;
}

.payoff-timeline {
    margin-bottom: 3rem;
}

.payoff-timeline h3 {
    color: #8b9eff;
    margin-bottom: 1rem;
}

.dark-mode .payoff-timeline h3 {
    color: #8b9eff;
}

.timeline-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.dark-mode .timeline-container {
    border-color: #404040;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
}

.timeline-month {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

.dark-mode .timeline-month {
    border-bottom-color: #404040;
}

.timeline-month:last-child {
    border-bottom: none;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-header h4 {
    color: #8b9eff;
    margin: 0;
    font-size: 1.1rem;
}

.dark-mode .timeline-header h4 {
    color: #8b9eff;
}

.timeline-totals {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.dark-mode .timeline-totals {
    color: #adb5bd;
}

.timeline-debts {
    display: grid;
    gap: 0.5rem;
}

.timeline-debt {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

.dark-mode .timeline-debt {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
}

.debt-name {
    font-weight: 500;
    color: #495057;
}

.dark-mode .debt-name {
    color: #adb5bd;
}

.debt-payment {
    color: #22c55e;
    font-weight: 500;
}

.dark-mode .debt-payment {
    color: #10b981;
}

.debt-remaining {
    color: #6c757d;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Content Section Styles */
.content-section {
    margin-top: 4rem;
}

.strategy-explanation {
    margin-bottom: 4rem;
}

.strategy-explanation h2 {
    color: #8b9eff;
    margin-bottom: 2rem;
}

.dark-mode .strategy-explanation h2 {
    color: #8b9eff;
}

.strategy-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

.dark-mode .strategy-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.strategy-card h3 {
    color: #8b9eff;
    margin-bottom: 1rem;
}

.dark-mode .strategy-card h3 {
    color: #8b9eff;
}

.strategy-card h4 {
    color: #495057;
    margin: 1.5rem 0 0.5rem 0;
}

.dark-mode .strategy-card h4 {
    color: #adb5bd;
}

.strategy-card ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: #6c757d;
}

.dark-mode .strategy-card ul {
    color: #adb5bd;
}

.tips-section {
    margin-bottom: 4rem;
}

.tips-section h2 {
    color: #8b9eff;
    margin-bottom: 2rem;
}

.dark-mode .tips-section h2 {
    color: #8b9eff;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.dark-mode .tip-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.tip-card h4 {
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.dark-mode .tip-card h4 {
    color: #8b9eff;
}

.tip-card p {
    color: #6c757d;
    margin: 0;
}

.dark-mode .tip-card p {
    color: #adb5bd;
}

.resources-section {
    margin-bottom: 2rem;
}

.resources-section h2 {
    color: #8b9eff;
    margin-bottom: 2rem;
}

.dark-mode .resources-section h2 {
    color: #8b9eff;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    text-align: center;
}

.dark-mode .resource-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.resource-card h4 {
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.dark-mode .resource-card h4 {
    color: #8b9eff;
}

.resource-card p {
    color: #6c757d;
    margin-bottom: 1rem;
}

.dark-mode .resource-card p {
    color: #adb5bd;
}

/* Form Validation Styles */
.form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.dark-mode .form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Debt Entry Component Styles */
.debt-entry-component {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #dee2e6;
}

.dark-mode .debt-entry-component {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
}

.debt-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.debt-entry-header h3 {
    color: #8b9eff;
    margin: 0;
}

.dark-mode .debt-entry-header h3 {
    color: #8b9eff;
}

.debt-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.debt-stats .stat {
    color: #6c757d;
}

.dark-mode .debt-stats .stat {
    color: #adb5bd;
}

.debt-stats strong {
    color: #8b9eff;
}

.dark-mode .debt-stats strong {
    color: #8b9eff;
}

.debt-entry-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

.dark-mode .debt-entry-form {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.debts-list {
    display: grid;
    gap: 1rem;
}

.no-debts {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.dark-mode .no-debts {
    color: #adb5bd;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border-color: #404040;
}

.debt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.dark-mode .debt-item {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.debt-item:hover {
    border-color: #8b9eff;
    box-shadow: 0 2px 8px rgba(139, 158, 255, 0.1);
}

.dark-mode .debt-item:hover {
    border-color: #8b9eff;
    box-shadow: 0 2px 8px rgba(139, 158, 255, 0.2);
}

.debt-info {
    flex: 1;
}

.debt-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.dark-mode .debt-name {
    color: #ffffff;
}

.debt-details {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.dark-mode .debt-details {
    color: #adb5bd;
}

.debt-details .balance {
    color: #8b9eff;
    font-weight: 500;
}

.dark-mode .debt-details .balance {
    color: #8b9eff;
}

.debt-details .rate {
    color: #ef4444;
    font-weight: 500;
}

.dark-mode .debt-details .rate {
    color: #ef4444;
}

.debt-details .payment {
    color: #22c55e;
    font-weight: 500;
}

.dark-mode .debt-details .payment {
    color: #10b981;
}

.debt-details .type {
    color: #6c757d;
    font-style: italic;
}

.dark-mode .debt-details .type {
    color: #808080;
}

.debt-actions {
    display: flex;
    gap: 0.5rem;
}

/* Debt Edit Modal */
.debt-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dark-mode .debt-edit-modal {
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dark-mode .modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
}

.modal-content h3 {
    color: #8b9eff;
    margin-bottom: 1.5rem;
}

.dark-mode .modal-content h3 {
    color: #8b9eff;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* Bootstrap Component Styles for Debt Entry */
.debt-entry-component .form-control,
.debt-entry-component .form-select {
    width: 100%;
}

.debt-entry-component .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.debt-entry-component .form-actions .btn {
    margin-bottom: 0.5rem;
}

.debt-entry-component .debt-actions .btn {
    margin-right: 0.25rem;
}

/* Modal Bootstrap styles */
.debt-edit-modal .form-control,
.debt-edit-modal .form-select {
    width: 100%;
}

.debt-edit-modal .modal-actions .btn {
    margin-left: 0.5rem;
}

/* Responsive Design for Debt Entry */
@media (max-width: 768px) {
    .debt-entry-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .debt-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .debt-entry-component .form-actions .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .debt-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .debt-details {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .debt-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .debt-entry-component .debt-actions sl-button {
        flex: 1;
        margin-right: 0.25rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .debt-edit-modal .modal-actions sl-button {
        width: 100%;
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #dee2e6;
}

.dark-mode .dashboard-section {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
}

.dashboard-section h2 {
    color: #8b9eff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.dark-mode .dashboard-section h2 {
    color: #8b9eff;
}

/* Debt Overview Styles */
.debt-overview {
    margin-bottom: 1rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.dark-mode .stat-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.stat-card:hover {
    border-color: #8b9eff;
    box-shadow: 0 4px 12px rgba(139, 158, 255, 0.1);
}

.dark-mode .stat-card:hover {
    border-color: #8b9eff;
    box-shadow: 0 4px 12px rgba(139, 158, 255, 0.2);
}

.stat-card h3 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode .stat-card h3 {
    color: #adb5bd;
}

.stat-value {
    color: #8b9eff;
    font-size: 1.8rem;
    font-weight: bold;
}

.dark-mode .stat-value {
    color: #8b9eff;
}

/* Calculator Tools Styles */
.calculator-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.dark-mode .tool-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.tool-card:hover {
    border-color: #8b9eff;
    box-shadow: 0 4px 12px rgba(139, 158, 255, 0.1);
    transform: translateY(-2px);
}

.dark-mode .tool-card:hover {
    border-color: #8b9eff;
    box-shadow: 0 4px 12px rgba(139, 158, 255, 0.2);
}

.tool-card h3 {
    color: #212529;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.dark-mode .tool-card h3 {
    color: #ffffff;
}

.tool-card p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.dark-mode .tool-card p {
    color: #adb5bd;
}

/* Progress Tracking Styles */
.progress-tracking {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.progress-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.dark-mode .progress-card {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.progress-card h3 {
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dark-mode .progress-card h3 {
    color: #ffffff;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.dark-mode .progress-bar {
    background: #404040;
}

.progress-fill {
    height: 100%;
    background: #8b9eff;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.chart-placeholder {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.dark-mode .chart-placeholder {
    color: #adb5bd;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border-color: #404040;
}

/* Payment Breakdown Styles */
.payment-breakdown h4 {
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.dark-mode .payment-breakdown h4 {
    color: #ffffff;
}

.payment-items {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.dark-mode .payment-item {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
}

.payment-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.debt-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .debt-name {
    color: #ffffff;
}

.payment-amount {
    font-size: 0.9rem;
    color: #8b9eff;
    font-weight: 500;
}

.dark-mode .payment-amount {
    color: #8b9eff;
}

.payment-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    min-width: 100px;
}

.dark-mode .payment-bar {
    background: #404040;
}

.payment-fill {
    height: 100%;
    background: #28a745;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.payment-percentage {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    min-width: 40px;
    text-align: right;
}

.dark-mode .payment-percentage {
    color: #adb5bd;
}

.total-payment {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    color: #212529;
}

.dark-mode .total-payment {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
    color: #ffffff;
}

/* Quick Actions Styles */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #495057;
}

.dark-mode .action-btn {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 1px solid #404040;
    color: #dee2e6;
}

.action-btn:hover {
    border-color: #8b9eff;
    background: rgba(139, 158, 255, 0.1);
    color: #8b9eff;
    transform: translateY(-1px);
}

.dark-mode .action-btn:hover {
    border-color: #8b9eff;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    color: #8b9eff;
}

.action-icon {
    font-size: 1.2rem;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.dark-mode .empty-state {
    color: #adb5bd;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-section {
        padding: 1.5rem;
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .calculator-tools {
        grid-template-columns: 1fr;
    }
    
    .progress-tracking {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .payment-bar {
        width: 100%;
        min-width: auto;
    }
    
    .payment-percentage {
        align-self: flex-end;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .action-buttons,
    .add-debt-section {
        display: none !important;
    }
    
    .results-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .summary-card,
    .strategy-card,
    .tip-card,
    .resource-card {
        border: 1px solid #000;
        break-inside: avoid;
    }
}

/* Bootstrap Dark Mode Button Styles */
.dark-mode .btn-outline-secondary {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #404040;
    color: #ffffff;
}

.dark-mode .btn-outline-secondary:hover {
    background: linear-gradient(145deg, #16213e 0%, #0f3460 100%);
    border-color: #8b9eff;
    color: #ffffff;
}

.dark-mode .btn-outline-danger {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.dark-mode .btn-outline-danger:hover {
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: #ffffff;
}

/* Tab Navigation */
.results-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
}

.dark-mode .results-tabs {
    background: #2d3748;
    border-bottom-color: #4a5568;
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: #495057;
    background: rgba(0, 0, 0, 0.05);
}

.dark-mode .tab-button {
    color: #a0aec0;
}

.dark-mode .tab-button:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    color: #8b9eff;
    border-bottom-color: #8b9eff;
    background: rgba(139, 158, 255, 0.1);
}

.dark-mode .tab-button.active {
    background: rgba(139, 158, 255, 0.2);
}

/* Tab Content */
.tab-content {
    padding: 2rem;
}

.dark-mode .tab-content {
    background: #1a1a1a;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Tab Header */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.dark-mode .tab-header {
    border-bottom-color: #4a5568;
}

.tab-header h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.dark-mode .tab-header h4 {
    color: #e2e8f0;
}

/* Strategy Overview */
.strategy-overview {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 2fr;
}

@media (max-width: 1200px) {
    .strategy-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .strategy-overview {
        gap: 1.5rem;
    }
}

.strategy-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #8b9eff;
}

.dark-mode .strategy-card {
    background: #2d3748;
    border-left-color: #8b9eff;
}

.strategy-card h5 {
    color: #8b9eff;
    margin-bottom: 0.5rem;
}

.strategy-metrics {
    margin-top: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.dark-mode .metric {
    border-bottom-color: #4a5568;
}

.metric:last-child {
    border-bottom: none;
}

.metric .label {
    color: #6c757d;
    font-weight: 500;
}

.dark-mode .metric .label {
    color: #a0aec0;
}

.metric .value {
    font-weight: bold;
    color: #333;
}

.dark-mode .metric .value {
    color: #e2e8f0;
}

/* Payment Flow Chart */
.payment-flow h5 {
    color: #8b9eff;
    margin-bottom: 1rem;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #8b9eff;
}

.dark-mode .flow-step {
    background: #2d3748;
}

.step-number {
    background: #8b9eff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h6 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
}

.dark-mode .step-content h6 {
    color: #e2e8f0;
}

.step-arrow {
    color: #8b9eff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: auto;
    padding-left: 1rem;
}

.dark-mode .step-arrow {
    color: #8b9eff;
}

/* Strategy Benefits */
.strategy-benefits h5 {
    color: #8b9eff;
    margin-bottom: 1rem;
}

.benefits-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #22c55e;
}

.dark-mode .benefit-card {
    background: #2d3748;
    border-left-color: #22c55e;
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content h6 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
}

.dark-mode .benefit-content h6 {
    color: #e2e8f0;
}

.benefit-content p {
    margin: 0 0 0.25rem 0;
    color: #666;
}

.dark-mode .benefit-content p {
    color: #a0aec0;
}

.benefit-content small {
    color: #999;
}

.dark-mode .benefit-content small {
    color: #718096;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.dark-mode .empty-state {
    background: #2d3748;
    color: #a0aec0;
    border-color: #4a5568;
}

.empty-state p {
    margin: 0;
    font-style: italic;
}

.flow-summary {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
}

.dark-mode .flow-summary {
    border-top-color: #4a5568;
}

.flow-summary .summary-card {
    background: #e8f5e8;
    border-left-color: #22c55e;
    text-align: center;
}

.dark-mode .flow-summary .summary-card {
    background: #1a2e1a;
    border-left-color: #22c55e;
}

.step-content p {
    margin: 0.25rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.dark-mode .step-content p {
    color: #a0aec0;
}

/* Payment Schedule */
.schedule-controls {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.schedule-controls label {
    font-weight: 500;
    color: #333;
}

.dark-mode .schedule-controls label {
    color: #e2e8f0;
}

.schedule-table {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.dark-mode .schedule-table {
    border-color: #4a5568;
}

/* Chart Container */
.chart-container {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

/* Chart Strategy Selection */
.chart-strategy-selection .btn-group {
    width: 100%;
}

.chart-strategy-selection .btn {
    flex: 1;
    font-size: 0.9rem;
}

.chart-strategy-selection .btn-check:checked + .btn {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.dark-mode .chart-container {
    background: #2d3748;
    border-color: #4a5568;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.dark-mode .legend-item {
    color: #a0aec0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* Strategy Comparison */
.strategy-comparison {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .strategy-comparison {
        grid-template-columns: 1fr;
    }
}

.comparison-chart {
    background: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.dark-mode .comparison-chart {
    background: #2d3748;
    border-color: #4a5568;
}

/* Export Options */
.export-options {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.dark-mode .export-options {
    background: #2d3748;
}

.export-options h4 {
    color: #333;
    margin-bottom: 1rem;
}

.dark-mode .export-options h4 {
    color: #e2e8f0;
}

.export-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        border-bottom: none;
        border-right: 3px solid transparent;
        text-align: left;
    }
    
    .tab-button.active {
        border-right-color: #8b9eff;
        border-bottom-color: transparent;
    }
    
    .strategy-summary .row {
        margin: 0;
    }
    
    .strategy-summary .col-md-3 {
        padding: 0.5rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .card-content .value {
        font-size: 1.2rem;
    }
    
    .export-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .export-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Dark Mode Enhancements */
.dark-mode .table {
    color: #e2e8f0;
}

.dark-mode .table thead th {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .table tbody td {
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .table-info {
    background: rgba(139, 158, 255, 0.1);
}

.dark-mode .form-select {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .form-select:focus {
    background-color: #2d3748;
    border-color: #8b9eff;
    color: #e2e8f0;
}

/* Animation for tab transitions */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #8b9eff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Debt Schedule Tabs */
.debt-schedule-tabs {
    margin-top: 1rem;
}

.debt-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.dark-mode .debt-tab-buttons {
    border-bottom-color: #4a5568;
}

.debt-tab-button {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .debt-tab-button {
    border-color: #4a5568;
    background: #2d3748;
    color: #a0aec0;
}

.debt-tab-button:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.dark-mode .debt-tab-button:hover {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

.debt-tab-button.active {
    background: #8b9eff;
    color: white;
    border-color: #8b9eff;
    box-shadow: 0 2px 4px rgba(139, 158, 255, 0.3);
}

.dark-mode .debt-tab-button.active {
    background: #8b9eff;
    color: white;
    border-color: #8b9eff;
}

.debt-tab-content {
    position: relative;
}

.debt-schedule-pane {
    display: none !important;
    animation: fadeIn 0.3s ease-in-out;
}

.debt-schedule-pane.active {
    display: block !important;
}

.debt-schedule-header {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #8b9eff;
}

.dark-mode .debt-schedule-header {
    background: #2d3748;
    border-left-color: #8b9eff;
}

.debt-schedule-header h5 {
    margin: 0 0 0.5rem 0;
    color: #212529;
    font-weight: 600;
}

.dark-mode .debt-schedule-header h5 {
    color: #e2e8f0;
}

.debt-summary {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.debt-summary span {
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

.dark-mode .debt-summary span {
    background: #4a5568;
    color: #e2e8f0;
}

/* Responsive design for debt tabs */
@media (max-width: 768px) {
    .debt-tab-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .debt-tab-button {
        max-width: none;
        text-align: left;
    }
    
    .debt-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .debt-summary span {
        display: block;
        width: fit-content;
    }
}

.dark-mode .alert {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
    color: #e0e0e0;
}

.dark-mode .alert-info {
    background: linear-gradient(145deg, #0c4a6e 0%, #075985 100%);
    border-color: #0891b2;
    color: #e0f2fe;
}

.dark-mode .alert-info p {
    color: #000;
}

.dark-mode .alert-warning {
    background: linear-gradient(145deg, #78350f 0%, #92400e 100%);
    border-color: #f59e0b;
    color: #fef3c7;
}

.dark-mode .alert-danger {
    background: linear-gradient(145deg, #7f1d1d 0%, #991b1b 100%);
    border-color: #dc2626;
    color: #fee2e2;
}

/* Strategy Selection Styles */
.strategy-buttons {
    text-align: center;
    margin-bottom: 2rem;
}

.strategy-buttons .btn-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.strategy-buttons .btn {
    min-width: 120px;
    font-weight: 500;
    border: none;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.strategy-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.strategy-buttons .btn-check:checked + .btn {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* Legacy styles for backward compatibility */
.strategy-selection .strategy-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.strategy-selection .strategy-option {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.strategy-selection .strategy-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.strategy-selection .form-check-input:checked + .form-check-label {
    color: #007bff;
    font-weight: 600;
}

.strategy-selection .strategy-option .form-check-input:checked ~ .form-check-label {
    color: #007bff;
    font-weight: 600;
}

.strategy-selection .strategy-option:has(.form-check-input:checked) {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.dark-mode .strategy-recommendation {
    background: #2d3748;
    border-color: #4a5568;
}

.dark-mode .card-body .form-text {
    color: #f8f9fa;
}

.dark-mode .text-muted {
    color: #4a5568 !important;
}

.strategy-recommendation {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.recommendation-card {
    text-align: center;
}

.recommendation-strategy {
    font-size: 1.1rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.recommendation-reasoning {
    color: #6c757d;
    line-height: 1.4;
}

/* Strategy Layout Improvements */
.strategy-card .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.strategy-card .metric:last-child {
    border-bottom: none;
}

.flow-chart {
    max-height: 400px;
    overflow-y: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Financial Settings Styles */
.financial-settings {
    margin-bottom: 2rem;
}

.financial-settings .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
}

.financial-settings .card-header {
    background: linear-gradient(135deg, #8b9eff 0%, #7c8eff 100%);
    border: none;
    padding: 1.25rem 1.5rem;
}

.financial-settings .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.financial-settings .card-body {
    padding: 1.5rem;
    background: #ffffff;
}

.financial-settings .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.financial-settings .form-label i {
    color: #8b9eff;
    font-size: 1.1rem;
}

.financial-settings .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.financial-settings .form-control {
    border: 2px solid #e9ecef;
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.financial-settings .form-control:focus {
    border-color: #8b9eff;
    box-shadow: 0 0 0 0.2rem rgba(139, 158, 255, 0.25);
    z-index: 1;
}

.financial-settings .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: none;
    color: #6c757d;
    font-weight: 600;
}

.financial-settings .btn-outline-secondary {
    border: 2px solid #6c757d;
    border-left: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.financial-settings .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.financial-settings .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.financial-settings .alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    color: #1565c0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.financial-settings .alert-info i {
    color: #1976d2;
    margin-right: 0.5rem;
}

.financial-settings .alert-info strong {
    color: #0d47a1;
}

/* Dark mode styles for financial settings */
.dark-mode .financial-settings .card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #404040;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .financial-settings .card-body {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
}

.dark-mode .financial-settings .form-label {
    color: #e2e8f0;
}

.dark-mode .financial-settings .form-control {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    border-color: #404040;
    color: #ffffff;
}

.dark-mode .financial-settings .form-control:focus {
    border-color: #8b9eff;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
}

.dark-mode .financial-settings .input-group-text {
    background: linear-gradient(145deg, #2d3748 0%, #4a5568 100%);
    border-color: #404040;
    color: #e2e8f0;
}

.dark-mode .financial-settings .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.dark-mode .financial-settings .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.dark-mode .financial-settings .form-text {
    color: #a0aec0;
}

.dark-mode .financial-settings .alert-info {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    border-color: #0891b2;
    color: #e0f2fe;
}

.dark-mode .financial-settings .alert-info i {
    color: #38bdf8;
}

.dark-mode .financial-settings .alert-info strong {
    color: #7dd3fc;
}

/* Responsive design for financial settings */
@media (max-width: 768px) {
    .financial-settings .card-body {
        padding: 1rem;
    }
    
    .financial-settings .row {
        margin: 0;
    }
    
    .financial-settings .col-md-6 {
        padding: 0 0.5rem;
    }
    
    .financial-settings .form-group {
        margin-bottom: 1rem;
    }
}

/* Credit Utilization Tab Styles */
.utilization-overview {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 1200px) {
    .utilization-overview {
        grid-template-columns: 1fr;
    }
}

.utilization-info h5 {
    color: #8b9eff;
    margin-bottom: 1rem;
}

.info-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #22c55e;
}

.dark-mode .info-card {
    background: #2d3748;
    border-left-color: #22c55e;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h6 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dark-mode .info-content h6 {
    color: #e2e8f0;
}

.info-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dark-mode .info-content p {
    color: #a0aec0;
}

.utilization-calculator h5 {
    color: #8b9eff;
    margin-bottom: 1rem;
}

.credit-limits-input {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.dark-mode .credit-limits-input {
    background: #2d3748;
    border-color: #4a5568;
}

.credit-limits-input p {
    margin-bottom: 1rem;
}

.credit-limits-input .form-group {
    margin-bottom: 0.75rem;
}

.credit-limits-input .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

.dark-mode .credit-limits-input .form-label {
    color: #a0aec0;
}

.credit-limits-input .input-group-sm .form-control {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.credit-limits-input .input-group-sm .input-group-text {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.utilization-table {
    margin-bottom: 2rem;
}

.utilization-table .utilization-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.utilization-table .utilization-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.utilization-table .credit-limit {
    font-weight: 600;
}

.utilization-table .target-balance {
    font-weight: 600;
    color: #28a745;
}

.utilization-table .amount-to-payoff {
    font-weight: 600;
}

.utilization-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.utilization-badge.good {
    background: #d1fae5;
    color: #065f46;
}

.utilization-badge.high {
    background: #fee2e2;
    color: #991b1b;
}

.dark-mode .utilization-badge.good {
    background: #064e3b;
    color: #6ee7b7;
}

.dark-mode .utilization-badge.high {
    background: #7f1d1d;
    color: #fca5a5;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.good {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.high {
    background: #fee2e2;
    color: #991b1b;
}

.dark-mode .status-badge.good {
    background: #064e3b;
    color: #6ee7b7;
}

.dark-mode .status-badge.high {
    background: #7f1d1d;
    color: #fca5a5;
}

.utilization-summary {
    margin-top: 2rem;
}

.summary-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #8b9eff;
}

.dark-mode .stat-card {
    background: #2d3748;
    border-left-color: #8b9eff;
}

.stat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content h6 {
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode .stat-content h6 {
    color: #a0aec0;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.dark-mode .stat-value {
    color: #e2e8f0;
}

.stat-value.good {
    color: #22c55e;
}

.stat-value.high {
    color: #ef4444;
}

.dark-mode .stat-value.good {
    color: #22c55e;
}

.dark-mode .stat-value.high {
    color: #ef4444;
}

/* Responsive design for utilization tab */
@media (max-width: 768px) {
    .utilization-overview {
        gap: 1.5rem;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .utilization-table {
        font-size: 0.9rem;
    }
    
    .utilization-table th,
    .utilization-table td {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 576px) {
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .utilization-table {
        font-size: 0.8rem;
    }
}