:root { 
    --primary-bg: #f8fafc; 
    --text-dark: #0f172a; 
    --text-muted: #64748b; 
    --accent-blue: #4f46e5; 
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025); 
}

body { 
    background-color: var(--primary-bg); 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    padding-top: 80px; 
}

/* NAVBAR */
.navbar { 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8); 
    height: 70px; 
}

.nav-btn { 
    border: 1px solid transparent; 
    padding: 8px 20px; 
    border-radius: 12px; 
    font-weight: 500; 
    font-size: 0.9rem; 
    transition: all 0.2s; 
    color: var(--text-muted); 
    text-decoration: none; 
}

.nav-btn:hover { 
    background: #f1f5f9; 
    color: var(--text-dark); 
}

.nav-btn.active { 
    background: #e0e7ff; 
    color: var(--accent-blue); 
    font-weight: 600; 
}

/* KARTLAR & FORM */
.custom-card { 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: 20px; 
    box-shadow: var(--card-shadow); 
    transition: transform 0.2s; 
}

.sticky-form { 
    position: sticky; 
    top: 100px; 
}

.form-control, .form-select { 
    background-color: #f8fafc; 
    border: 1px solid #e2e8f0; 
    padding: 12px 15px; 
    border-radius: 12px; 
    font-size: 16px; 
    transition: all 0.2s; 
}

.form-control:focus, .form-select:focus { 
    background: white; 
    border-color: var(--accent-blue); 
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); 
}

/* TABLO */
.table-custom { 
    border-collapse: separate; 
    border-spacing: 0 10px; 
    margin-top: -10px; 
}

.table-custom thead th { 
    background-color: transparent; 
    color: var(--text-muted); 
    font-weight: 600; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    padding: 0 20px 10px 20px; 
    border: none; 
}

.table-custom tbody tr { 
    background: white; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02); 
    border-radius: 16px; 
    transition: transform 0.2s, box-shadow 0.2s; 
}

@media (min-width: 992px) { 
    .table-custom tbody tr:hover { 
        transform: translateY(-2px); 
        box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
        z-index: 10; 
        position: relative; 
    } 
}

.table-custom tbody td { 
    padding: 20px; 
    vertical-align: middle; 
    border: none; 
    font-size: 0.95rem; 
}

.table-custom tbody td:first-child { 
    border-top-left-radius: 16px; 
    border-bottom-left-radius: 16px; 
}

.table-custom tbody td:last-child { 
    border-top-right-radius: 16px; 
    border-bottom-right-radius: 16px; 
}

/* AVATAR & ISTATISTIK */
.avatar-circle { 
    width: 45px; 
    height: 45px; 
    min-width: 45px; 
    background: linear-gradient(135deg, #4f46e5, #818cf8); 
    color: white; 
    border-radius: 14px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 600; 
    font-size: 1rem; 
    margin-right: 15px; 
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2); 
}

.stat-card { 
    background: white; 
    padding: 20px; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    height: 100%; 
}

.stat-label { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: var(--text-muted); 
    font-weight: 600; 
    margin-bottom: 5px; 
}

.stat-value { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--text-dark); 
}

/* BALONCUKLAR */
.note-bubble { 
    background: #f1f5f9; 
    border-radius: 12px; 
    padding: 12px; 
    margin-bottom: 10px; 
    border-left: 4px solid var(--accent-blue); 
    font-size: 0.9rem; 
}

.cost-bubble { 
    background: #fff1f2; 
    border-radius: 12px; 
    padding: 12px; 
    margin-bottom: 10px; 
    border-left: 4px solid #ef4444; 
    position: relative; 
    font-size: 0.9rem; 
}

.income-bubble { 
    background: #f0fdf4; 
    border-radius: 12px; 
    padding: 12px; 
    margin-bottom: 10px; 
    border-left: 4px solid #22c55e; 
    position: relative; 
    font-size: 0.9rem; 
}

.delete-mini-btn { 
    position: absolute; 
    top: 5px; 
    right: 5px; 
    color: #94a3b8; 
    font-size: 0.8rem; 
    padding: 5px; 
    cursor: pointer; 
    transition: 0.2s; 
    z-index: 10; 
}

.delete-mini-btn:hover { 
    color: #ef4444; 
    transform: scale(1.1); 
}

/* BADGES */
.status-badge { 
    padding: 6px 12px; 
    border-radius: 30px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    display: inline-block; 
}

.badge-soft-success { 
    background-color: #dcfce7; 
    color: #166534; 
}

.badge-soft-warning { 
    background-color: #fef9c3; 
    color: #854d0e; 
}

.badge-soft-danger { 
    background-color: #fee2e2; 
    color: #991b1b; 
}

.badge-soft-secondary { 
    background-color: #f1f5f9; 
    color: #475569; 
}

.bugun-aranacak { 
    box-shadow: inset 4px 0 0 #ef4444 !important; 
    background: #fff5f5 !important; 
}

/* TAKVİM */
.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 10px; 
}

.calendar-day { 
    background: white; 
    border: 1px solid #e2e8f0; 
    border-radius: 16px; 
    min-height: 140px; 
    padding: 10px; 
    position: relative; 
    transition: all 0.2s; 
}

.calendar-day:hover { 
    box-shadow: var(--card-shadow); 
    border-color: var(--accent-blue); 
    cursor: pointer; 
    transform: translateY(-2px); 
}

.day-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 8px; 
}

.day-number { 
    font-weight: 700; 
    color: var(--text-dark); 
    font-size: 1.1rem; 
}

.day-name-mobile { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    display: none; 
}

.event-item { 
    font-size: 0.75rem; 
    padding: 4px 8px; 
    border-radius: 6px; 
    margin-bottom: 4px; 
    color: white; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.bg-primary { 
    background-color: #4f46e5 !important; 
} 

.bg-success { 
    background-color: #22c55e !important; 
} 

.bg-danger { 
    background-color: #ef4444 !important; 
} 

.bg-warning { 
    background-color: #f59e0b !important; 
}

.today { 
    border: 2px solid var(--accent-blue); 
    background-color: #eef2ff; 
}

/* MODAL */
.modal-backdrop { 
    z-index: 2000 !important; 
} 

.modal { 
    z-index: 2001 !important; 
}

/* GİRİŞ SAYFASI */
.login-body { 
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-family: 'Inter', sans-serif; 
    padding: 20px; 
}

.login-card { 
    background: rgba(255, 255, 255, 0.95); 
    padding: 40px; 
    border-radius: 24px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
    width: 100%; 
    max-width: 400px; 
    text-align: center; 
}

.login-btn { 
    background: #4f46e5; 
    border: none; 
    padding: 12px; 
    font-weight: 600; 
    transition: all 0.3s; 
}

.login-btn:hover { 
    background: #4338ca; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3); 
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .sticky-form { 
        position: static; 
        margin-bottom: 30px; 
    }
    .stat-card { 
        margin-bottom: 10px; 
        text-align: center; 
    }
    .modal-dialog { 
        margin: 10px; 
    }
    .border-end-lg { 
        border-right: none !important; 
        border-bottom: 1px solid #f1f5f9; 
        padding-bottom: 20px; 
        margin-bottom: 20px; 
    }
}

@media (max-width: 768px) {
    .calendar-grid { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    .calendar-day { 
        min-height: auto; 
        padding: 15px; 
    }
    .day-name-mobile { 
        display: inline-block; 
    }
    .day-names-header { 
        display: none !important; 
    }
}

@media (max-width: 576px) {
    .table-custom tbody tr { 
        display: block; 
        margin-bottom: 15px; 
    }
    .table-custom tbody td { 
        display: block; 
        text-align: left; 
        padding: 10px 20px; 
        border-radius: 0 !important; 
    }
    .table-custom tbody td:first-child { 
        padding-top: 20px; 
        border-radius: 16px 16px 0 0 !important; 
    }
    .table-custom tbody td:last-child { 
        padding-bottom: 20px; 
        border-radius: 0 0 16px 16px !important; 
        border-top: 1px solid #f1f5f9; 
        text-align: right; 
    }
    .table-custom thead { 
        display: none; 
    }
    .avatar-circle { 
        margin-bottom: 0; 
    }
}