/* ================================================
   BORDRO HESAPLAMA - Premium Finance Dashboard
   ================================================ */

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

:root {
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --bg: #f0f2f5;
    --surface: #ffffff;
    --surface-hover: #fafbfc;
    --border: #e4e7ec;
    --border-light: #f0f2f5;

    --text-primary: #1a1a2e;
    --text-secondary: #2d3748;
    --text-tertiary: #4a5568;
    --text-muted: #718096;

    --brand-600: #1570ef;
    --brand-500: #2e90fa;
    --brand-50: #eff8ff;
    --brand-100: #d1e9ff;

    --green-700: #027a48;
    --green-600: #039855;
    --green-100: #d1fadf;
    --green-50: #ecfdf3;

    --red-700: #b42318;
    --red-100: #fee4e2;
    --red-50: #fef3f2;

    --amber-700: #b54708;
    --amber-100: #fef0c7;
    --amber-50: #fffaeb;

    --purple-700: #5925dc;
    --purple-100: #ebe9fe;
    --purple-50: #f4f3ff;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-xs: 0 1px 2px rgba(16,24,40,0.05);
    --shadow-sm: 0 1px 3px rgba(16,24,40,0.1), 0 1px 2px rgba(16,24,40,0.06);
    --shadow-md: 0 4px 8px -2px rgba(16,24,40,0.1), 0 2px 4px -2px rgba(16,24,40,0.06);
    --shadow-lg: 0 12px 16px -4px rgba(16,24,40,0.08), 0 4px 6px -2px rgba(16,24,40,0.03);
    --shadow-xl: 0 20px 24px -4px rgba(16,24,40,0.08), 0 8px 8px -4px rgba(16,24,40,0.03);
}

html { font-size: 15.5px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============ TOP BAR ============ */
.topbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
    padding: 1.25rem 2rem;
    position: relative;
    overflow: hidden;
}

.topbar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(56,189,248,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.topbar-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #38bdf8;
    backdrop-filter: blur(8px);
}

.topbar h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
}

.topbar-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    margin-top: 2px;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(56,189,248,0.15);
    border: 1px solid rgba(56,189,248,0.25);
    color: #7dd3fc;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* ============ PAGE WRAPPER ============ */
.page-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
}

/* ============ CARDS ============ */
.card-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.25rem;
    transition: box-shadow 0.2s ease;
}

.card-section:hover {
    box-shadow: var(--shadow-sm);
}

.card-header-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.card-header-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.card-header-icon.blue { background: var(--brand-50); color: var(--brand-600); }
.card-header-icon.green { background: var(--green-50); color: var(--green-600); }
.card-header-icon.purple { background: var(--purple-50); color: var(--purple-700); }
.card-header-icon.amber { background: var(--amber-50); color: var(--amber-700); }

.card-header-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-body-inner {
    padding: 1.1rem 1.25rem;
}

/* ============ FORM GRID ============ */
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid-6 { grid-template-columns: repeat(6, 1fr); }
.form-grid-5 { grid-template-columns: repeat(5, 1fr); }
.form-grid-4 { grid-template-columns: repeat(4, 1fr); }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Responsive breakpoints are at the bottom of the file */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-control, .form-select {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0 12px;
    background: var(--surface);
    transition: all 0.15s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667085' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px var(--brand-50), 0 1px 2px rgba(16,24,40,0.05);
}

.form-control:hover, .form-select:hover {
    border-color: #d0d5dd;
}

/* Legacy check-item removed - using switch-pill instead */

/* ============ PARAM ROW (Diger Parametreler) ============ */
.param-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.param-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.switch-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    background: var(--surface);
}

.switch-pill:hover {
    border-color: #b0bec5;
    background: #f8f9fb;
}

.switch-pill input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    flex-shrink: 0;
    background: var(--surface);
}

.switch-pill input[type="checkbox"]:checked {
    background: var(--brand-600);
    border-color: var(--brand-600);
}

.switch-pill input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.switch-pill input[type="checkbox"]:checked + .switch-pill-label {
    color: var(--brand-600);
    font-weight: 600;
}

.switch-pill-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Responsive breakpoints are at the bottom of the file */

/* ============ SECTIONS ROW ============ */
.sections-row {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

/* Responsive breakpoints are at the bottom of the file */

/* ============ HESAPLA BUTTON ============ */
.btn-hesapla {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    background: #1a56db;
    color: #ffffff;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(26,86,219,0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-hesapla:hover {
    background: #1e40af;
    box-shadow: 0 4px 12px rgba(26,86,219,0.25);
    transform: translateY(-1px);
}

.btn-hesapla:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(26,86,219,0.2);
}

.btn-hesapla:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-hesapla i {
    font-size: 0.9rem;
}

/* ============ RESULT TABLE ============ */
.result-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.result-top {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-top h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-top h2 i {
    color: #38bdf8;
    font-size: 1rem;
}

.result-info {
    font-size: 0.78rem;
    color: #ffffff;
    font-weight: 500;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rtable {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
}

.rtable thead th {
    background: #1e3a5f;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 10px;
    text-align: right;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #2563eb;
}

.rtable thead th:first-child {
    text-align: left;
    padding-left: 16px;
}

.rtable tbody td {
    padding: 9px 12px;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 500;
    transition: background 0.1s ease;
    white-space: nowrap;
}

.rtable tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    padding-left: 16px;
    white-space: nowrap;
}

.rtable tbody tr:hover td {
    background: var(--brand-50);
}

/* Dilim gecisi gosterge */
.rtable tbody tr:hover td:first-child {
    background: var(--brand-100);
}

/* NET UCRET */
.c-net {
    background: var(--green-50) !important;
    color: var(--green-700) !important;
    font-weight: 700 !important;
    position: relative;
}

/* TOPLAM MALIYET */
.c-maliyet {
    background: var(--red-50) !important;
    color: var(--red-700) !important;
    font-weight: 600 !important;
}

/* TESVIKLI MALIYET */
.c-tesvikli {
    background: var(--amber-50) !important;
    color: var(--amber-700) !important;
    font-weight: 700 !important;
}

/* Tesvik degerleri */
.c-tesvik {
    color: var(--brand-600) !important;
    font-weight: 600 !important;
}

/* Toplam satir */
.rtable tfoot td {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-primary);
    padding: 12px 10px;
    text-align: right;
    border-top: 2px solid var(--border);
    font-size: 0.82rem;
}

.rtable tfoot td:first-child {
    text-align: left;
    padding-left: 16px;
}

/* ============ INFO CARDS ============ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Responsive breakpoints are at the bottom of the file */

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.info-card-head {
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-card-head.blue { color: var(--brand-600); background: var(--brand-50); }
.info-card-head.green { color: var(--green-600); background: var(--green-50); }
.info-card-head.amber { color: var(--amber-700); background: var(--amber-50); }

.info-card table {
    width: 100%;
    font-size: 0.78rem;
    border-collapse: collapse;
}

.info-card table td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-tertiary);
}

.info-card table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.info-card table tr:last-child td {
    border-bottom: none;
}

/* ============ TESVIK KART INACTIVE ============ */
.tesvikKart-inactive {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* ============ ANIMATIONS ============ */
.animate-in {
    animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============ SCROLLBAR ============ */
.table-scroll::-webkit-scrollbar {
    height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
    background: var(--border-light);
}

.table-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============ TOAST NOTIFICATIONS ============ */
#toastContainer {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 340px;
    max-width: 440px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.toast-item.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-item.toast-hide {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-error .toast-icon { background: var(--red-50); color: var(--red-700); }
.toast-success .toast-icon { background: var(--green-50); color: var(--green-700); }
.toast-warning .toast-icon { background: var(--amber-50); color: var(--amber-700); }
.toast-info .toast-icon { background: var(--brand-50); color: var(--brand-600); }

.toast-error { border-left: 3px solid var(--red-700); }
.toast-success { border-left: 3px solid var(--green-600); }
.toast-warning { border-left: 3px solid var(--amber-700); }
.toast-info { border-left: 3px solid var(--brand-600); }

.toast-body { flex: 1; min-width: 0; }

.toast-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-msg {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.toast-close:hover { opacity: 1; }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-light);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 0 0 0 var(--radius-lg);
}

.toast-error .toast-progress-bar { background: var(--red-700); }
.toast-success .toast-progress-bar { background: var(--green-600); }
.toast-warning .toast-progress-bar { background: var(--amber-700); }
.toast-info .toast-progress-bar { background: var(--brand-600); }

/* ============ SEO CONTENT ============ */
.seo-content {
    border-top: 1px solid var(--border-light);
    padding: 2rem 0 1rem;
}

.seo-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
    letter-spacing: -0.01em;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    font-size: 0.88rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* ============ FOOTER ============ */
.app-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    margin-top: 1rem;
}

.footer-content p {
    margin: 0;
    line-height: 1.6;
}

.footer-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 4px !important;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---------- 1200px: Large Tablet / Small Desktop ---------- */
@media (max-width: 1200px) {
    .form-grid-6, .form-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 992px: Tablet ---------- */
@media (max-width: 992px) {
    .sections-row { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- 768px: Small Tablet / Large Phone ---------- */
@media (max-width: 768px) {
    /* Form Grid */
    .form-grid-6, .form-grid-5, .form-grid-4, .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid { gap: 0.75rem; }
    .form-group[style*="grid-column: span 2"] { grid-column: span 1 !important; }

    /* Topbar */
    .topbar { padding: 1rem 1rem; }
    .topbar-content { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .topbar h1 { font-size: 1.1rem; }
    .topbar-sub { font-size: 0.7rem; }
    .topbar-sub-seo { display: none; }
    .topbar-icon { width: 36px; height: 36px; font-size: 1.1rem; }
    .topbar-brand { gap: 0.65rem; }

    /* Page Wrapper */
    .page-wrapper { padding: 1rem 0.75rem 1.5rem; }

    /* Cards */
    .card-section { margin-bottom: 0.85rem; border-radius: var(--radius); }
    .card-header-bar { padding: 0.7rem 1rem; }
    .card-body-inner { padding: 0.85rem 0.85rem; }

    /* Param Row */
    .param-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .param-switches { gap: 6px; }

    /* Sections Row */
    .sections-row { grid-template-columns: 1fr; gap: 0.85rem; }

    /* Hesapla Button */
    .btn-hesapla { width: 100%; padding: 14px 20px; font-size: 0.9rem; }

    /* Result Table */
    .result-wrapper { border-radius: var(--radius); margin-bottom: 1rem; }
    .result-top { padding: 0.85rem 1rem; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    .result-top h2 { font-size: 0.82rem; }
    .result-info { font-size: 0.72rem; }
    .rtable { font-size: 0.75rem; }
    .rtable thead th { font-size: 0.62rem; padding: 8px 6px; }
    .rtable thead th:first-child { padding-left: 10px; }
    .rtable tbody td { padding: 7px 6px; }
    .rtable tbody td:first-child { padding-left: 10px; }
    .rtable tfoot td { padding: 10px 6px; font-size: 0.75rem; }
    .rtable tfoot td:first-child { padding-left: 10px; }

    /* Info Grid */
    .info-grid { grid-template-columns: 1fr; gap: 0.85rem; margin-bottom: 1.25rem; }

    /* Toast */
    #toastContainer { top: 0.75rem; right: 0.75rem; left: 0.75rem; }
    .toast-item { min-width: auto; max-width: 100%; }

    /* SEO Content */
    .seo-content { padding: 1.5rem 1rem 0.75rem; }
    .seo-content h2 { font-size: 1rem; margin: 1.25rem 0 0.4rem; }
    .seo-content p { font-size: 0.82rem; }

    /* Footer */
    .app-footer { padding: 1rem 0.75rem; }
}

/* ---------- 480px: Mobile Phone ---------- */
@media (max-width: 480px) {
    /* Form Grid */
    .form-grid-6, .form-grid-5, .form-grid-4, .form-grid-3, .form-grid-2 {
        grid-template-columns: 1fr;
    }

    /* Topbar */
    .topbar { padding: 0.85rem 0.75rem; }
    .topbar h1 { font-size: 0.95rem; }
    .topbar-sub { font-size: 0.65rem; }
    .topbar-icon { width: 32px; height: 32px; font-size: 1rem; }
    .topbar-brand { gap: 0.5rem; }
    .topbar-badge { font-size: 0.58rem; padding: 3px 8px; }

    /* Page Wrapper */
    .page-wrapper { padding: 0.75rem 0.5rem 1rem; }

    /* Cards */
    .card-section { margin-bottom: 0.65rem; border-radius: var(--radius-sm); }
    .card-header-bar { padding: 0.6rem 0.75rem; gap: 0.4rem; }
    .card-header-text { font-size: 0.82rem; }
    .card-header-icon { width: 24px; height: 24px; font-size: 0.75rem; }
    .card-body-inner { padding: 0.65rem 0.65rem; }

    /* Param Row & Switches */
    .param-row { grid-template-columns: 1fr; gap: 0.65rem; }
    .param-switches { gap: 5px; }
    .switch-pill { padding: 5px 10px; }
    .switch-pill-label { font-size: 0.78rem; }

    /* Sections Row */
    .sections-row { gap: 0.65rem; }

    /* Form controls */
    .form-control, .form-select { height: 38px; font-size: 0.85rem; }
    .form-label { font-size: 0.78rem; }

    /* Result Table */
    .result-top { padding: 0.75rem 0.75rem; }
    .result-top h2 { font-size: 0.78rem; }
    .result-info { font-size: 0.68rem; }
    .rtable { font-size: 0.7rem; }
    .rtable thead th { font-size: 0.58rem; padding: 6px 5px; }
    .rtable tbody td { padding: 6px 5px; }
    .rtable tfoot td { padding: 8px 5px; font-size: 0.7rem; }

    /* Info Cards */
    .info-card-head { padding: 0.6rem 0.75rem; font-size: 0.68rem; }
    .info-card table { font-size: 0.75rem; }
    .info-card table td { padding: 5px 8px; }

    /* Toast */
    #toastContainer { top: 0.5rem; right: 0.5rem; left: 0.5rem; }
    .toast-item { padding: 10px 12px; gap: 8px; }
    .toast-icon { width: 28px; height: 28px; font-size: 0.85rem; }
    .toast-title { font-size: 0.78rem; }
    .toast-msg { font-size: 0.72rem; }

    /* SEO Content */
    .seo-content { padding: 1.25rem 0.75rem 0.5rem; }
    .seo-content h2 { font-size: 0.92rem; margin: 1rem 0 0.35rem; }
    .seo-content p { font-size: 0.78rem; line-height: 1.6; }

    /* Footer */
    .app-footer { padding: 0.85rem 0.5rem; font-size: 0.68rem; }
    .footer-desc { font-size: 0.62rem; }
}
