/* css/style.css - Vizerio PRO Tasarım (FULL GÜNCEL) */

:root {
    --bg-color: #f8fafc;
    --sidebar-bg: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --green-profit: #10b981;
    --red-expense: #ef4444;
    --orange-escrow: #f59e0b;
    --blue-info: #3b82f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body { margin: 0; font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-primary); overflow: hidden; }
.app-container { display: flex; height: 100vh; }

/* SIDEBAR */
.sidebar { width: 260px; background-color: var(--sidebar-bg); color: #e2e8f0; display: flex; flex-direction: column; padding: 20px; flex-shrink: 0; }
.logo-area { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px;}
.menu-item { display: flex; align-items: center; padding: 12px 15px; color: #94a3b8; border-radius: 8px; margin-bottom: 5px; cursor: pointer; transition: 0.2s; font-weight: 500; }
.menu-item:hover, .menu-item.active { background: rgba(255,255,255,0.1); color: var(--white); }
.menu-item span { margin-right: 12px; }
.text-red { color: #f87171 !important; }

/* MAIN CONTENT */
.main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 0; }
.top-header { background: var(--white); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 10; }
.search-bar { background: #f1f5f9; padding: 10px 15px; border-radius: 8px; width: 300px; display: flex; align-items: center; border: 1px solid transparent; transition: 0.3s; }
.search-bar:focus-within { border-color: var(--blue-info); background: white; }
.search-bar input { border: none; background: transparent; outline: none; margin-left: 10px; width: 100%; color: var(--text-primary); }

/* SECTIONS */
.content-section { padding: 40px; display: none; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.content-section.active { display: block; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* FİNANS KARTLARI */
.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 30px; }
.card { background: var(--white); padding: 25px; border-radius: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; border: 1px solid #e2e8f0; }
.card-title { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 5px; }
.money { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.border-green { border-bottom: 4px solid var(--green-profit); }
.border-blue { border-bottom: 4px solid var(--blue-info); }
.border-red { border-bottom: 4px solid var(--red-expense); }
.border-orange { border-bottom: 4px solid var(--orange-escrow); }

/* FİNANS TABLOSU */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin-top: 10px; }
.data-table th { text-align: left; padding: 15px 20px; color: #94a3b8; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.data-table th:last-child { text-align: right; }
.data-table tbody tr { background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: 0.2s; border-radius: 12px; }
.data-table tbody tr:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.data-table td { padding: 20px; font-size: 14px; color: var(--text-primary); border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.data-table td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; border-left: 1px solid #f1f5f9; }
.data-table td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; border-right: 1px solid #f1f5f9; text-align: right; font-weight: 700; font-size: 15px; }
.row-income td:first-child { border-left: 4px solid var(--green-profit); }
.row-expense td:first-child { border-left: 4px solid var(--red-expense); }
.row-escrow td:first-child { border-left: 4px solid var(--orange-escrow); }

/* --- CRM ÖZEL TASARIMI (YENİ) --- */
.crm-filter-bar { display: flex; gap: 30px; border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; }
.filter-tab { padding: 10px 5px; cursor: pointer; color: #64748b; font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.filter-tab:hover { color: var(--blue-info); }
.filter-tab.active { color: var(--blue-info); border-bottom-color: var(--blue-info); font-weight: 600; }
.count-badge { background: #f1f5f9; color: #64748b; padding: 2px 8px; border-radius: 10px; font-size: 11px; }
.count-badge.bg-blue { background: #eff6ff; color: var(--blue-info); }
.count-badge.bg-orange { background: #fff7ed; color: var(--orange-escrow); }
.count-badge.bg-red { background: #fef2f2; color: var(--red-expense); }
.count-badge.bg-purple { background: #f3e8ff; color: #9333ea; }

.crm-table { width: 100%; border-collapse: collapse; }
.crm-table th { text-align: left; padding: 15px; color: #94a3b8; font-size: 11px; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
.crm-table tbody tr { transition: 0.2s; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.crm-table tbody tr:hover { background: #f8fafc; }
.crm-table td { padding: 15px; font-size: 14px; color: var(--text-primary); vertical-align: middle; }
.program-tag { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #334155; }
.country-code { background: #e2e8f0; color: #475569; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }

.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-warning { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.status-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fee2e2; }
.status-success { background: #f0fdf4; color: #15803d; border: 1px solid #dcfce7; }
.status-process { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.action-icon-btn { border: none; background: transparent; color: #cbd5e1; cursor: pointer; transition: 0.2s; }
.crm-table tr:hover .action-icon-btn { color: var(--blue-info); }

/* --- DRAWER (KAYAN PANEL) --- */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 1000; display: none; }
.drawer-overlay.active { display: block; }
.drawer-panel { position: fixed; top: 0; right: -450px; width: 450px; height: 100%; background: white; box-shadow: -5px 0 25px rgba(0,0,0,0.1); z-index: 1001; transition: 0.3s ease-in-out; display: flex; flex-direction: column; }
.drawer-panel.active { right: 0; }
.drawer-header { padding: 20px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.drawer-body { padding: 25px; overflow-y: auto; flex: 1; }

/* MODAL & BUTONLAR */
.btn { padding: 12px 20px; border-radius: 10px; border: none; color: white; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; font-size: 14px; }
.btn:hover { opacity: 0.95; transform: translateY(-1px); }
.btn-green { background: var(--green-profit); }
.btn-red { background: var(--red-expense); }
.btn-orange { background: var(--orange-escrow); }
.btn-blue { background: var(--blue-info); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-overlay.active { display: flex; animation: fadeIn 0.2s; }
.modal-box { background: white; width: 500px; max-width: 90%; border-radius: 16px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); overflow: hidden; animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { padding: 20px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.modal-body { padding: 25px; max-height: 70vh; overflow-y: auto; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.form-control { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; transition: 0.2s; box-sizing: border-box; }
.wizard-steps { display: flex; border-bottom: 1px solid #f1f5f9; margin-bottom: 25px; padding-bottom: 15px; }
.w-step { flex: 1; text-align: center; font-size: 12px; color: #94a3b8; font-weight: 600; padding: 5px; border-bottom: 2px solid transparent; transition: 0.3s; }
.w-step.active { color: var(--blue-info); border-bottom-color: var(--blue-info); }
.selection-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.selection-card { padding: 25px; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; text-align: center; transition: 0.2s; display: flex; flex-direction: column; align-items: center; gap: 10px; background: white; }
.selection-card:hover { border-color: var(--blue-info); background: #f0f9ff; }
.photo-upload-area { text-align: center; width: 100px; }
.photo-circle { width: 80px; height: 80px; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; border: 2px dashed #cbd5e1; margin: 0 auto 5px; }
.upload-zone { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 30px; text-align: center; cursor: pointer; color: #64748b; background: #f8fafc; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge-gray { background: #f1f5f9; color: #64748b; }
.bg-green-light { background: #dcfce7; color: #15803d; }
.bg-red-light { background: #fee2e2; color: #b91c1c; }
.bg-orange-light { background: #ffedd5; color: #c2410c; }

/* --- DRAWER (ÇEKMECE) TASARIMI --- */
.drawer-tabs { display: flex; border-bottom: 1px solid #f1f5f9; margin-bottom: 15px; }
.d-tab { flex: 1; text-align: center; padding: 10px; font-size: 13px; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; transition: 0.2s; }
.d-tab.active { color: var(--blue-info); border-bottom-color: var(--blue-info); font-weight: 600; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.info-item label { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 3px; }
.info-item span { display: block; font-size: 14px; color: #0f172a; font-weight: 500; }

.drawer-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #f1f5f9; display: flex; gap: 10px; }
