/* FinFree Web - Styles */
/* version: 2026-01-25-9 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --light: #f3f4f6;
    --dark: #1f2937;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fafbfc;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.1;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: -50px;
    right: -50px;
    animation: blob-animation 7s infinite;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: white;
    bottom: -30px;
    left: -30px;
    animation: blob-animation 9s infinite reverse;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: white;
    top: 50%;
    right: 10%;
    animation: blob-animation 8s infinite;
}

@keyframes blob-animation {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -50px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(50px, 50px); }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Features Section */
.features {
    padding: 80px 2rem;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 15px;
    color: white;
    text-align: center;
    transform: transition;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Calculator Section */
.calculator-section {
    padding: 40px 2rem;
    background: white;
    min-height: 100vh;
}

.calculator-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.help-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.help-inline:focus {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
}

.help-tooltip {
    position: absolute;
    left: 50%;
    top: 130%;
    transform: translateX(-50%);
    background: #111827;
    color: #f9fafb;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.25;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.help-inline:hover .help-tooltip,
.help-inline:focus .help-tooltip {
    opacity: 1;
    visibility: visible;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

input:disabled, select:disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.param-name {
    font-size: 0.65rem;
    color: #aaa;
    text-align: right;
    margin-top: 2px;
    font-family: 'Courier New', monospace;
    display: block;
    width: 100%;
}

/* Form Sections */
.form-section {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.form-section:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.form-section-title i {
    font-size: 1.5rem;
}

.help-accordion {
    display: grid;
    gap: 12px;
}

.help-item {
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.help-header {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    background: #f8fafc;
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.help-header i {
    transition: transform 0.2s ease;
}

.help-body {
    display: none;
    padding: 14px 16px;
    color: #666;
}

.help-item.help-open .help-body {
    display: block;
}

.help-item.help-open .help-header i {
    transform: rotate(180deg);
}

/* CLI Command Box */
.cli-command-box {
    background: #1e1e1e;
    color: #00ff00;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.cli-command-box code {
    flex: 1;
    word-break: break-all;
    white-space: pre-wrap;
}

/* Results Preview */
.results-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow);
}

.result-card h3 {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--border);
    flex-wrap: wrap;
}

.tab-nav-btn {
    padding: 16px 28px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--dark);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.tab-nav-btn:hover {
    color: var(--primary);
}

.tab-nav-btn.active {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom-color: transparent;
    border-radius: 8px 8px 0 0;
}

/* Tab Panels */
.tab-panel {
    display: none !important;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.btn-run {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    font-size: 1.2rem;
    padding: 18px 36px;
}

/* Results Summary */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 25px;
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.result-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.9;
}

.result-card h3 {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.result-value {
    font-size: 2.2rem;
    font-weight: bold;
}

/* Results Tabs */
.results-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.results-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.results-tab-btn:hover {
    color: var(--primary);
}

.results-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
    align-items: center;
}

.btn-export {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.4rem;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    min-width: 44px;
    min-height: 44px;
}

.btn-export:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-export:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.results-tab-panel {
    display: none;
}

.results-tab-panel.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

#chart {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

#chart.active {
    display: block !important;
}

#chart .chart-block {
    margin-bottom: 24px;
}

#chart .chart-block:last-child {
    margin-bottom: 0;
}

#chart .chart-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #374151;
    margin: 0 0 10px 2px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#chart canvas {
    max-width: 100%;
    height: auto;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.1rem;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 15px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.75rem;
}

.results-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 6px;
    text-align: right !important;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: grab;
    user-select: none;
    transition: opacity 0.2s;
    /* Allow headers to wrap to multiple lines */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100px;
    vertical-align: top !important;
    line-height: 1.2;
}

.results-table th:hover {
    cursor: grab;
}

.results-table th.dragging {
    opacity: 0.5 !important;
}

.results-table td {
    padding: 2px 6px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    text-align: right !important;
}

.results-table td[data-column="infl_source"],
.results-table td[data-column="msci_source"],
.results-table td[data-column="survived"] {
    text-align: left !important;
}

.results-table tbody tr:hover {
    background: var(--light);
}

/* Detailed Results Section */
.detailed-results-section {
    padding: 80px 2rem;
    background: var(--light);
}

.detailed-results-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Plans Section */
.plans-section {
    padding: 80px 2rem;
    background: white;
}

.plans-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.plan-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.plan-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.plan-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.plan-card-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.plan-card-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.1rem;
}

.plans-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    cursor: pointer;
}

.close:hover {
    color: var(--dark);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Alert Box */
.alert-box {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 999;
}

.alert {
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    border-left: 4px solid var(--success);
    color: var(--success);
}

.alert-error {
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.alert-info {
    border-left: 4px solid var(--primary);
    color: var(--primary);
}

/* Spinner */
.spinner {
    text-align: center;
    padding: 30px;
}

.spinner-border {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 2rem;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 5px 0;
}

/* Modal CLI Command Display */
.modal-content code {
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .results-preview {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Column Selector Panel */
.column-selector-panel {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.column-selector-panel h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.column-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.column-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.column-checkboxes input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

.column-checkboxes label:hover {
    color: #6366f1;
}

/* Context Menu for Column Selection */
.column-context-menu {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    z-index: 10000;
    min-width: 260px;
    width: 520px;
    max-width: 90vw;
}

.context-menu-content {
    padding: 0;
}

.context-menu-header {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border-radius: 12px 12px 0 0;
}

.context-menu-header strong {
    display: block;
    font-size: 0.62rem;
    color: #111827;
}

.context-menu-header small {
    display: block;
    font-size: 0.5rem;
    color: #6b7280;
    margin-top: 4px;
}

.context-menu-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    max-height: 260px;
    overflow-y: auto;
    padding: 3px;
    column-gap: 2px;
    row-gap: 1px;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 3px;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
    transition: background 0.2s;
    font-size: 0.62rem !important;
}

.context-menu-item:hover {
    background: #f1f5f9;
}

.context-menu-item input[type="checkbox"] {
    cursor: pointer;
    width: 9px;
    height: 9px;
    accent-color: #6366f1;
}

.context-menu-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    color: #374151;
    font-size: 0.62rem !important;
}

.hint-text {
    font-size: 0.85rem;
    color: #999;
    margin-top: 12px;
    text-align: center;
    font-style: italic;
}

/* Run button in top-right */

/* Navbar buttons */
.tab-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-navbar {
    padding: 10px 16px;
    font-size: 0.9rem;
    height: fit-content;
    white-space: nowrap;
    margin-right: 12px;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Test Plans Styles */
.plan-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.plan-description {
    font-size: 0.95rem;
    color: #666;
    margin: 10px 0;
    line-height: 1.4;
}

.plan-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.btn-info {
    background: #17a2b8;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-info:hover {
    background: #138496;
}

/* Plan actions within card - bottom right alignment */
.plan-card .plan-actions {
    margin-top: auto;
    padding-top: 0;
    margin-top: 15px;
    border-top: none;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Checklist Section */
#checklist-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

#checklist-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

#checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

#checklist-items li {
    padding: 10px 0;
    color: #555;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.5;
}

#checklist-items li:last-child {
    border-bottom: none;
}

#checklist-items li:before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
    margin-right: 8px;
}
