:root {
    --bg-color: #0d1117;
    --panel-bg: rgba(22, 27, 34, 0.7);
    --card-bg: rgba(33, 38, 45, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-blue: #2f81f7;
    --accent-blue-hover: #1f6feb;
    --accent-green: #2ea043;
    --accent-red: #f85149;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --glass-blur: blur(12px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(47, 129, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(46, 160, 67, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-blue), #8a2be2);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(47, 129, 247, 0.4);
}

h1 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

h1 span {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Mode Switch */
.mode-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Layout */
.main-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Panels */
.left-panel,
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-form {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.input-form.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.3s ease;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

/* Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="number"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(47, 129, 247, 0.3);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol,
.percent-symbol {
    position: absolute;
    color: var(--text-secondary);
    font-weight: 500;
}

.currency-symbol {
    left: 1rem;
}

.percent-symbol {
    right: 1rem;
}

#auto-budget {
    padding-left: 2rem;
}

#auto-drop {
    padding-left: 1.5rem;
    padding-right: 2rem;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.primary-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 1rem;
}

.primary-btn:hover {
    background: var(--accent-blue-hover);
}

.primary-btn:active {
    transform: scale(0.98);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.summary-card:hover::before {
    opacity: 1;
}

.glow-blue {
    border-bottom: 3px solid var(--accent-blue);
}

.glow-red {
    border-bottom: 3px solid var(--accent-red);
}

.card-icon {
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card-content h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Result Settings Card */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.setting-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid transparent;
    transition: border 0.2s;
}

.setting-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.setting-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.setting-val {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hidden {
    display: none !important;
}

/* Table */
.table-container h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    color: var(--text-secondary);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 . c o m m a s - g r i d   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   1 f r   1 f r ; 
         g a p :   1 . 5 r e m   1 r e m ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 2 ) ; 
         p a d d i n g :   1 . 2 5 r e m ; 
         b o r d e r - r a d i u s :   8 p x ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ; 
 } 
 
 . m b - 1   { 
         m a r g i n - b o t t o m :   0 . 5 r e m ; 
 } 
 
 . r i g h t - s y m b o l   i n p u t   { 
         p a d d i n g - r i g h t :   3 . 5 r e m   ! i m p o r t a n t ;   / *   S p a c e   f o r   s y m b o l   * / 
 } 
 
 . r i g h t - s y m b o l   . s y m b o l   { 
         p o s i t i o n :   a b s o l u t e ; 
         r i g h t :   1 r e m ; 
         c o l o r :   v a r ( - - t e x t - s e c o n d a r y ) ; 
         f o n t - w e i g h t :   5 0 0 ; 
 } 
 
 @ m e d i a   ( m a x - w i d t h :   6 0 0 p x )   { 
         . c o m m a s - g r i d   { 
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r ; 
         } 
 } 
  
 