:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --bg: #f3f4f6;
    --card: #ffffff;
    --text: #1f2937;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background: var(--bg); color: var(--text); padding-bottom: 95px; }

#header { background: var(--primary); color: white; padding: 18px; text-align: center; position: sticky; top:0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
#content { padding: 12px; }

/* 2'li Grid */
.two-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Floating Nav */
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    display: flex;
    gap: 22px;
    padding: 12px 25px;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
}
.nav-item {
    color: #9ca3af;
    font-size: 22px;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}
.nav-item.active { color: var(--primary); transform: translateY(-3px); }

/* Kartlar */
.card { 
    background: var(--card); 
    padding: 12px; 
    border-radius: 12px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-title { font-weight: bold; font-size: 14px; margin-bottom: 4px; color: #111827; }
.card-meta { display: flex; justify-content: space-between; font-size: 11px; color: #6b7280; align-items: center; }
.card-meta-col { display: flex; flex-direction: column; gap: 3px; font-size: 12px; margin-top: 6px; }
.cursor-pointer { cursor: pointer; }

.font-bold { font-weight: bold; }
.bg-primary { background: var(--primary); }
.text-white { color: white; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.badge { background: #e5e7eb; padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 600; color: #374151; }
.note { font-size: 11px; background: #f9fafb; border-left: 3px solid #d1d5db; padding: 4px 6px; margin-top: 6px; }

/* Tabs (Aktif / Arşiv) */
.tab-container { display: flex; gap: 8px; margin-bottom: 10px; }
.tab-btn { flex: 1; padding: 8px; background: #e5e7eb; color: #4b5563; border-radius: 8px; font-size: 13px; font-weight: bold; }
.tab-btn.active { background: var(--primary); color: white; }

/* Formlar & Butonlar */
input, select, textarea { width: 100%; padding: 9px; margin-bottom: 8px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; background: #fff; }
button { background: var(--primary); color: white; border: none; padding: 10px 14px; border-radius: 8px; font-weight: bold; cursor: pointer; }
.btn-small { padding: 5px 8px; font-size: 11px; width: 100%; text-align: center; border-radius: 6px;}
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-edit { background: #e5e7eb; color: #374151; }
.row { display: flex; gap: 8px; }
.top-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.top-actions button { flex: 1; }
.top-actions select { flex: 1; margin-bottom: 0; }
.mt-1 { margin-top: 6px; }
.back-btn { background: #e5e7eb; color: #374151; margin-bottom: 12px; width: auto; font-size: 13px; padding: 6px 12px; }

/* Arama ve Harita Aksiyon Butonları */
.action-btn-group {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.btn-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: 0.2s ease;
}

.btn-call {
    background: #e0e7ff;
    color: var(--primary);
}

.btn-call:active {
    background: #c7d2fe;
}

.btn-map {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-map:active {
    background: #bfdbfe;
}

.btn-detail-action {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 10px;
    font-size: 12px;
}

.btn-detail-action:active {
    background: rgba(255, 255, 255, 0.3);
}

/* İstatistik */
.stat-card { background: white; padding: 12px; border-radius: 12px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.stat-card h3 { font-size: 11px; color: #6b7280; margin-bottom: 4px; }
.stat-card p { font-size: 16px; font-weight: bold; }
.filter-bar { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 5px; }
.filter-bar button { white-space: nowrap; font-size: 11px; padding: 6px 10px; }
.custom-date { display: flex; gap: 5px; margin-top: 8px; }
.custom-date input { margin-bottom: 0; }

/* Modallar */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}
.modal-content {
    background: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 14px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.modal-body p { margin-bottom: 8px; font-size: 13px; color: #374151; }
.close-modal { font-size: 24px; cursor: pointer; color: #9ca3af; font-weight: bold; }

/* FullCalendar - Beyaz Yazı ve Stiller */
.calendar-container { background: #fff; border-radius: 12px; padding: 10px; }
.fc .fc-toolbar-title { font-size: 15px !important; font-weight: bold; }
.fc .fc-button { padding: 4px 8px !important; font-size: 12px !important; background: var(--primary) !important; border-color: var(--primary) !important; }
.fc-event { 
    background: var(--primary) !important; 
    border: none !important; 
    color: #ffffff !important; 
    font-size: 11px !important; 
    padding: 2px 4px !important; 
    border-radius: 4px !important; 
    cursor: pointer;
}
.fc-event-title, .fc-event-main, .fc-event-time {
    color: #ffffff !important;
}
.fc .fc-col-header-cell-cushion { font-size: 12px; color: #4b5563; text-decoration: none; }
.fc .fc-daygrid-day-number { font-size: 11px; color: #374151; font-weight: 500; text-decoration: none; }

/* Giriş Kutusu */
.login-container { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box { background: white; padding: 30px; border-radius: 15px; width: 90%; max-width: 380px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); text-align: center; }
.login-box h2 { margin-bottom: 15px; }
.error { color: var(--danger); margin-bottom: 10px; font-size: 13px; }
