/* ----------------------------------------------------
   Core Design System & Global Variables
   ---------------------------------------------------- */
:root {
    /* 기본 화이트 (Light) 테마 디자인 변수 */
    --bg-app: #f8fafc;            /* Slate 50 */
    --bg-surface: rgba(255, 255, 255, 0.75); /* 투명 화이트 */
    --bg-surface-hover: rgba(255, 255, 255, 0.9);
    --border-color: rgba(15, 23, 42, 0.05); /* Slate 900 5% 투명 */
    --border-color-focus: rgba(99, 102, 241, 0.2);
    
    --color-primary: #4f46e5;      /* Indigo */
    --color-primary-light: #6366f1;
    --color-accent: #0891b2;       /* Cyan 600 */
    --color-accent-light: #06b6d4;
    --color-success: #10b981;      /* Emerald */
    --color-danger: #ef4444;       /* Rose */
    --color-warning: #f59e0b;      /* Amber */
    
    --text-primary: #0f172a;       /* Slate 900 */
    --text-secondary: #475569;     /* Slate 600 */
    --text-muted: #94a3b8;         /* Slate 400 */
    
    --bg-gauge-track: #e2e8f0;     /* 게이지 원호 회색 트랙 */
    --text-gauge-center: #0f172a;
    
    --font-heading: 'Outfit', 'Noto Sans KR', sans-serif;
    --font-body: 'Inter', 'Noto Sans KR', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.02);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.03);
    --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition-fast: 0.04s linear;
    --transition-normal: 0.08s linear;
}

[data-theme="dark"] {
    /* 블랙 (Dark) 테마 디자인 변수 */
    --bg-app: #030712;             /* 깊은 블랙 */
    --bg-surface: rgba(17, 24, 39, 0.65); /* 투명 다크 */
    --bg-surface-hover: rgba(26, 37, 58, 0.75);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-focus: rgba(99, 102, 241, 0.4);
    
    --color-accent: #06b6d4;
    --color-accent-light: #22d3ee;
    
    --text-primary: #f9fafb;       /* Slate 50 */
    --text-secondary: #9ca3af;     /* Slate 400 */
    --text-muted: #6b7280;         /* Slate 500 */
    
    --bg-gauge-track: #1f2937;
    --text-gauge-center: #f3f4f6;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* ----------------------------------------------------
   Base & Reset Styles
   ---------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100vh;
    overflow: hidden !important;
    scroll-behavior: auto !important;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    position: relative;
}

/* 은은한 배경 그라데이션 - 스크롤 성능 향상을 위해 별도의 fixed 레이어로 분리하고 GPU 가속 적용 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(at 10% 20%, rgba(79, 70, 229, 0.04) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(6, 182, 212, 0.03) 0px, transparent 50%);
    pointer-events: none;
    transform: translate3d(0, 0, 0); /* GPU 가속 활성화 */
    will-change: transform;
}

[data-theme="dark"] body::before {
    background-image: 
        radial-gradient(at 10% 20%, rgba(79, 70, 229, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
}

/* ----------------------------------------------------
   Reusable UI Tokens (Glassmorphism & Cards)
   ---------------------------------------------------- */
.card-glass {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card-glass:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

/* ----------------------------------------------------
   Typography & Headers
   ---------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* ----------------------------------------------------
   Layout - Header & Navigation
   ---------------------------------------------------- */
.app-header {
    background: rgba(255, 255, 255, 0.75); /* 글래스모피즘 라이트 헤더 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="dark"] .app-header {
    background: rgba(8, 11, 17, 0.85); /* 다크 헤더 */
}

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

.app-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-status-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

/* ----------------------------------------------------
   Layout - Core Grid
   ---------------------------------------------------- */
.app-main-content {
    max-width: 100%;
    margin: 0;
    padding: 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: calc(100vh - 65px);
    overflow: hidden;
}

.dashboard-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.dashboard-layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr 420px;
    gap: 1.5rem;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

@media (max-width: 1024px) {
    html, body {
        height: auto;
        overflow: auto !important;
    }
    .app-main-content {
        height: auto;
        overflow: auto;
    }
    .dashboard-section {
        height: auto;
        overflow: auto;
    }
    .dashboard-layout-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow: auto;
        gap: 2rem;
    }
    .layout-col-left, .layout-col-center, .layout-col-right {
        height: auto !important;
        overflow-y: visible !important;
    }
}

.layout-col-left, .layout-col-center, .layout-col-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
}

.section-container {
    padding: 1.5rem 1.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.25rem;
}

/* ----------------------------------------------------
   Forms & Controls
   ---------------------------------------------------- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

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

label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input, select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px var(--border-color-focus);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.radio-label input {
    cursor: pointer;
}

/* Input with Suffix */
.input-suffix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-suffix-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.input-suffix-wrapper span {
    position: absolute;
    right: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    pointer-events: none;
}

/* ----------------------------------------------------
   Buttons
   ---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.6);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: #080b11;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.4);
}

.btn-accent:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px 0 rgba(6, 182, 212, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-accent {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent-light);
}

.btn-outline-accent:hover {
    background: rgba(6, 182, 212, 0.08);
}

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

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

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ----------------------------------------------------
   Auth Screen Styling
   ---------------------------------------------------- */
.auth-section {
    max-width: 450px;
    margin: 4rem auto;
    padding: 2.5rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.auth-tab-btn.active {
    color: var(--color-accent-light);
    border-bottom-color: var(--color-accent-light);
}

.auth-form {
    display: flex;
    flex-direction: column;
    animation: fadeIn var(--transition-normal);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ----------------------------------------------------
   Dashboard - Summary Metrics Cards
   ---------------------------------------------------- */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.summary-card {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

#card-total-assets::before { background: var(--color-accent); }
#card-total-profit::before { background: var(--color-success); }
#card-total-yield::before { background: var(--color-primary); }

.summary-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    font-size: 1.45rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ----------------------------------------------------
   Dashboard - Accounts List Grid
   ---------------------------------------------------- */
.accounts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-right: 0.25rem;
}

.account-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.account-item-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-md);
}

.account-item-card.active {
    background: rgba(99, 102, 241, 0.06);
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.account-info-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentcolor;
}

.account-name-wrapper {
    display: flex;
    flex-direction: column;
}

.account-name-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.account-type-badge {
    font-size: 0.68rem;
    background: rgba(15, 23, 42, 0.04);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .account-type-badge {
    background: rgba(255, 255, 255, 0.06);
}

.account-info-right {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.account-val-amt {
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

.account-val-yield {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ----------------------------------------------------
   Dashboard - Retirement Planning Card
   ---------------------------------------------------- */
.retirement-card {
    height: 100%;
}

.retirement-inputs {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.input-inline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.retirement-calculator-results {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.retire-metric-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(79, 70, 229, 0.05));
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.retire-metric-box .metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.retire-metric-box .metric-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.retirement-visual-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.retirement-visual-progress h4 {
    align-self: flex-start;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

#pension-gauge-container {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauge-labels {
    display: flex;
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 0.5rem;
}

.retirement-table-wrapper {
    overflow-x: auto;
}

.retirement-table-wrapper h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* ----------------------------------------------------
   Account Detail Section
   ---------------------------------------------------- */
.account-detail-section {
    padding: 2.25rem;
    animation: fadeIn var(--transition-normal);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.detail-header h2 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
    background: rgba(0, 0, 0, 0.015);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .detail-summary-row {
    background: rgba(0, 0, 0, 0.2);
}

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

.detail-summary-item {
    display: flex;
    flex-direction: column;
}

.detail-summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-summary-value {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.assets-table-wrapper {
    margin-bottom: 2.5rem;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* ----------------------------------------------------
   Tables Styling
   ---------------------------------------------------- */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.custom-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.custom-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.custom-table tbody tr {
    transition: background-color var(--transition-fast);
}

.custom-table tbody tr:hover {
    background-color: rgba(15, 23, 42, 0.015);
}

[data-theme="dark"] .custom-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.015);
}

.table-sm th {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.table-sm td {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
}

/* ----------------------------------------------------
   Modals & Custom Dialogs (HTML5 <dialog>)
   ---------------------------------------------------- */
dialog {
    margin: auto;
    border: none;
    outline: none;
    border-radius: var(--radius-lg);
    background: transparent;
}

.dialog-glass {
    width: 100%;
    max-width: 480px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    color: var(--text-primary);
    transform: scale(0.9);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

dialog[open].dialog-glass {
    transform: scale(1);
    opacity: 1;
}

/* Backdrop */
dialog::backdrop {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn var(--transition-normal);
}

[data-theme="dark"] dialog::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.dialog-form h2 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Color Palette Radio Selection */
.color-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.color-option {
    position: relative;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.color-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.color-option:hover {
    border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="dark"] .color-option:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.color-option.checked {
    border-color: var(--text-primary);
    box-shadow: 0 0 8px currentcolor;
}

/* ----------------------------------------------------
   Autocomplete (네이버 금융 연동 검색창)
   ---------------------------------------------------- */
.autocomplete-container {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    box-shadow: var(--shadow-lg);
}

.autocomplete-item {
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    transition: background-color var(--transition-fast);
}

.autocomplete-item:hover {
    background-color: var(--bg-surface-hover);
}

.autocomplete-item .item-symbol {
    color: var(--color-accent-light);
    font-weight: 600;
}

/* ----------------------------------------------------
   Backup & File Input styling
   ---------------------------------------------------- */
.backup-restore-section {
    padding: 1.5rem 2rem;
}

.backup-restore-section h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.backup-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hidden-file-input {
    display: none;
}

/* ----------------------------------------------------
   App Footer
   ---------------------------------------------------- */
.app-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

/* ----------------------------------------------------
   Utility Classes & Animations
   ---------------------------------------------------- */
.hidden { display: none !important; }

.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-accent { color: var(--color-accent-light) !important; }
.text-muted { color: var(--text-muted) !important; }

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

/* 스크롤 시 마우스 반응을 일시 비활성화하여 페인팅 및 transition 지연 예방 */
.disable-hover, .disable-hover * {
    pointer-events: none !important;
}

/* 테이블 최대 높이 제한을 통한 1페이지 스크롤 제어 */
.table-scroll-container {
    max-height: 290px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .table-scroll-container {
    background: rgba(0, 0, 0, 0.2);
}

.history-table-scroll {
    max-height: 210px;
}

.pension-table-scroll {
    max-height: 180px;
}

/* 계좌 미선택 상태 플레이스홀더 스타일 */
.detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 3rem 1.5rem;
}

.placeholder-content {
    max-width: 380px;
}

.placeholder-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.25rem;
    opacity: 0.6;
}

.detail-placeholder h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.detail-placeholder p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
