/* ============================================
   CARİ HESAP TAKİP SİSTEMİ - STYLE.CSS
   Modern & Şık Tasarım
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-input: #0f172a;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: #334155;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============================================
   HEADER / BANNER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

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

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.nav-link i {
    font-size: 1.1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.user-info:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.user-info:hover .fa-chevron-down {
    color: white !important;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--success), var(--info));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 25px 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding-top: 90px;
    padding-bottom: 30px;
    min-height: calc(100vh - 100px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Login hero (sol karşılama alanı) */
.login-hero {
    flex: 1;
    margin-right: 40px;
}

.login-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35);
}

.login-hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.login-hero-title span {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.98rem;
    max-width: 520px;
    margin-bottom: 24px;
}

.login-hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 520px;
}

.hero-feature {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, rgba(250, 250, 250, 0.15), transparent),
                radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.25), transparent);
    color: var(--primary-light);
    flex-shrink: 0;
}

.hero-feature h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.hero-feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Daha kompakt login kartı */
.login-card-compact {
    padding: 32px 28px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 50px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

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

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

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-icon {
    padding: 10px;
    width: 40px;
    height: 40px;
}

/* ============================================
   HEADER ICONS & MESSAGE BADGE
   ============================================ */
.header-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--text-muted);
    text-decoration: none;
}

.header-icon-link:hover {
    color: var(--primary);
}

.header-icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-hover);
}

.header-icon-wrapper i {
    font-size: 1.1rem;
}

.message-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--bg-primary);
}

/* Mesaj detay modali için daha düzenli layout */
.modal .customer-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.modal .customer-info-card,
.modal .ekstrek-container {
    margin: 0;
}

.modal .customer-info-card h3 {
    margin-bottom: 12px;
}

.modal .info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal .info-label {
    min-width: 110px;
}

/* ============================================
   DASHBOARD CARDS
   ============================================ */
.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.card-icon.purple {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.card-icon.blue {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.2));
}

.card-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
}

.card-icon.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Link olan dashboard-card için stil garantisi */
a.dashboard-card,
a.dashboard-card .card-title,
a.dashboard-card .card-description {
    color: inherit;
    text-decoration: none;
}

a.dashboard-card .card-title {
    color: var(--text-primary);
}

a.dashboard-card .card-description {
    color: var(--text-muted);
}

a.dashboard-card:hover .card-title,
a.dashboard-card:hover .card-description {
    color: inherit;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}

.stat-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--bg-card-hover);
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   TABLE
   ============================================ */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.table-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table th {
    background: var(--bg-input);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: var(--bg-card-hover);
}

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

/* Dava Türü Renkli Çizgiler */
.data-table tbody tr.dava-turu-hukuk td:first-child {
    border-left: 4px solid #10b981 !important;
    padding-left: 16px !important;
}

.data-table tbody tr.dava-turu-ceza td:first-child {
    border-left: 4px solid #ef4444 !important;
    padding-left: 16px !important;
}

.data-table tbody tr.dava-turu-idari td:first-child {
    border-left: 4px solid #6b7280 !important;
    padding-left: 16px !important;
}

.data-table tbody tr.dava-turu-diger td:first-child {
    border-left: 4px solid #9ca3af !important;
    padding-left: 16px !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.action-btns {
    display: flex;
    gap: 8px;
}

/* ============================================
   CALENDAR
   ============================================ */
.calendar-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 25px;
}

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

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    width: 40px;
    height: 40px;
    background: var(--bg-card-hover);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.calendar-nav button:hover {
    background: var(--primary);
}

.calendar-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    padding: 5px;
    min-height: 45px;
}

.calendar-day:hover {
    background: var(--bg-card-hover);
}

.calendar-day.clickable {
    cursor: pointer;
}

.calendar-day.clickable:hover {
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-day.today {
    background: var(--primary);
    color: white;
}

.calendar-day.today:hover {
    background: var(--primary-dark);
}

/* Takvim Gösterge Noktaları */
.calendar-indicators {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
}

.calendar-indicators .indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.calendar-indicators .indicator.alacak {
    background: var(--danger);
}

.calendar-indicators .indicator.tahsilat {
    background: var(--success);
}

.calendar-indicators .indicator.not {
    background: var(--primary);
}

.calendar-indicators .indicator.taksit {
    background: var(--warning);
}

/* Tarih Detay Modal */
.date-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.date-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.date-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border-left: 4px solid transparent;
}

.date-item.alacak {
    border-left-color: var(--danger);
}

.date-item.tahsilat {
    border-left-color: var(--success);
}

.date-item.not {
    border-left-color: var(--primary);
}

.date-item.not.success {
    border-left-color: var(--success);
}

.date-item.not.warning {
    border-left-color: var(--warning);
}

.date-item.not.danger {
    border-left-color: var(--danger);
}

.date-item-content {
    flex: 1;
}

.date-item-content strong {
    display: block;
    margin-bottom: 3px;
}

.date-item-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.date-item-amount {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    margin-left: 15px;
}

/* ============================================
   FILTER SECTION
   ============================================ */
.filter-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
}

/* ============================================
   CUSTOMER DETAIL
   ============================================ */
.customer-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

.customer-info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.customer-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-info-card .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.customer-info-card .info-row:last-child {
    border-bottom: none;
}

.customer-info-card .info-label {
    color: var(--text-muted);
}

.customer-info-card .info-value {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.ekstrek-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.ekstre-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ekstre-header h3 {
    margin: 0;
    flex: 1;
}

.ekstre-row {
    display: flex;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.ekstre-row:hover {
    background: var(--bg-card-hover);
}

.ekstre-date {
    width: 120px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ekstre-description {
    flex: 1;
}

.ekstre-amount {
    width: 150px;
    text-align: right;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.ekstre-amount.credit {
    color: var(--success);
}

.ekstre-amount.debit {
    color: var(--danger);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ============================================
   LOADING
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .customer-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .login-page {
        flex-direction: column;
        padding: 30px 16px;
    }

    .login-hero {
        margin-right: 0;
        margin-bottom: 24px;
    }

    .login-hero-title {
        font-size: 1.8rem;
    }

    .login-card {
        padding: 35px 25px;
    }
    
    .modal {
        max-width: 100%;
        margin: 10px;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    background: var(--bg-card-hover);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    z-index: 999;
    display: none;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav-link {
    display: flex;
    padding: 15px;
    margin-bottom: 5px;
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   SELECT STYLING
   ============================================ */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

/* ============================================
   HACİZLİ MAL DETAY TABLOSU
   ============================================ */
.hacizli-detail-table-wrapper {
    margin: 10px 0 15px 0;
}

.hacizli-detail-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-input);
    border-radius: 8px;
    overflow: hidden;
}

.hacizli-detail-table tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.6);
}

.hacizli-detail-table td {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.hacizli-detail-table tr:last-child td {
    border-bottom: none;
}

.hacizli-detail-table .detail-label {
    width: 35%;
    color: var(--text-muted);
    font-weight: 500;
}

.hacizli-detail-table .detail-value {
    width: 65%;
    text-align: right;
    font-weight: 500;
}

/* ============================================
   BİLDİRİM MODAL
   ============================================ */
#bildirimModal .modal {
    text-align: center;
}

#bildirimModal .modal-header {
    justify-content: center;
    position: relative;
}

#bildirimModal .modal-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#bildirimIcon {
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   ALACAK LİSTESİ (Tahsilat Modal)
   ============================================ */
.alacak-listesi-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
}

.alacak-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.alacak-item:last-child {
    border-bottom: none;
}

.alacak-item:hover {
    background: var(--bg-card-hover);
}

.alacak-item.selected {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid var(--primary);
}

.alacak-item input[type="radio"] {
    margin-top: 3px;
    accent-color: var(--primary);
}

.alacak-item label {
    flex: 1;
    cursor: pointer;
}

.alacak-item .alacak-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.alacak-item .alacak-durum {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.alacak-item .alacak-durum.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alacak-item .alacak-durum.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.alacak-item .alacak-durum.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alacak-item .alacak-info {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.alacak-item .alacak-tutarlar {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.alacak-item .alacak-tutarlar span {
    color: var(--text-secondary);
}

.alacak-item.success {
    opacity: 0.6;
}

.alacak-item.success:hover {
    opacity: 0.8;
}

/* ============================================
   FILE UPLOAD STYLING
   ============================================ */
input[type="file"].form-input {
    padding: 12px 18px;
    cursor: pointer;
}

input[type="file"].form-input::file-selector-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-right: 12px;
    transition: var(--transition);
}

input[type="file"].form-input::file-selector-button:hover {
    transform: scale(1.02);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.file-preview-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.file-preview-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Belge ikonu stili */
.document-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.document-badge i {
    font-size: 0.85rem;
}

/* ============================================
   SEARCH BOX
   ============================================ */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-input {
    padding: 10px 15px 10px 40px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    min-width: 220px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .search-input {
        min-width: 150px;
        width: 100%;
    }
    
    .table-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        flex: 1;
    }
}

