@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #10b981; /* Daha canlı bir zümrüt yeşili */
    --primary-hover: #059669;
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --danger: #ef4444;
    --success: #22c55e;
    --card-bg: #ffffff;
}

/* Gece Modu (Dark Mode) Değişkenleri */
body.dark-mode {
    --bg-color: #0b1120;
    --sidebar-bg: #111827;
    --card-bg: #1f2937;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #374151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.logo-container {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu {
    list-style: none;
    margin-top: 10px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    background-color: rgba(15, 157, 88, 0.05);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.nav-menu li a svg {
    width: 18px;
    height: 18px;
    margin-right: 15px;
    fill: currentColor;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    height: 60px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.theme-toggle {
    cursor: pointer;
}

/* Container */
.content-container {
    padding: 30px;
    flex: 1;
}

/* Cards & Tables generic */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

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

th {
    text-align: left;
    padding: 15px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 15px;
    font-size: 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.text-success { color: var(--success); font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 600; }

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: 0.2s;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-outline-success { background: transparent; border: 1px solid var(--success); color: var(--success); }
.btn-outline-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 5px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* Yeni Eklenen UI Elementleri (Toggle ve Sağlık Barları) */
.health-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.progress-bg {
    background-color: var(--border-color);
    border-radius: 3px;
    height: 22px;
    width: 60px;
    position: relative;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 6px;
    color: white;
    font-size: 11px;
    font-weight: 600;
}
.progress-fill.bg-success { background-color: var(--success); }
.progress-fill.bg-warning { background-color: #fbbb00; }

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    vertical-align: middle;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .3s; border-radius: 20px;
}
.slider:before {
    position: absolute; content: "";
    height: 14px; width: 14px; left: 3px; bottom: 3px;
    background-color: white; transition: .3s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(16px); }

.action-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.icon-action {
    fill: var(--primary);
    width: 18px;
    cursor: pointer;
    transition: 0.2s;
}
.icon-action:hover { fill: var(--primary-hover); }

/* Üst Kısım Araçları */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.toolbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Yatırımlar Sayfası ve Modallar */
.amount-box {
    border: 1px solid var(--success);
    color: var(--success);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    font-size: 13px;
}
.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}
.status-badge.status-approved { border: 1px solid var(--success); color: var(--success); }
.status-badge.status-rejected { border: 1px solid var(--danger); color: var(--danger); }

.action-btn-sm {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.action-btn-sm.bg-gray { background-color: #8c8c8c; }
.action-btn-sm.bg-success { background-color: var(--success); }

/* Modal Ortak Yapısı */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center; justify-content: center; z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--card-bg); border-radius: 8px; width: 400px;
    padding: 30px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.modal-icon {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.modal-icon.danger { background: var(--danger); fill: white; }
.modal-icon.success { background: var(--success); fill: white; }
.modal-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 10px; line-height: 1.5; }
.modal-value { font-size: 18px; font-weight: 600; color: #111; margin-bottom: 20px; }

.modal-actions { display: flex; gap: 15px; margin-top: 20px; }
.modal-actions button { flex: 1; padding: 12px; font-weight: 600; border-radius: 4px; cursor: pointer; border: none; }
.btn-light { border: 1px solid #ddd; background: transparent; color: #555; }
.btn-danger { background: var(--danger); color: white; }
