:root {
    --primary-color: #0d6efd;
    --dark-bg: #1e293b;
    --sidebar-width: 280px;
}

body { 
    background-color: #f4f6f9; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    user-select: none;
    overflow-x: hidden;
}

.wrapper-layout { display: flex; flex: 1; width: 100%; position: relative; }
.main-content { flex: 1; padding: 20px; min-width: 0; overflow-x: hidden; }

.main-wrapper { flex: 1; padding: 20px 0; width: 100%; }
.login-card { max-width: 400px; margin: 10vh auto; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); border: none; }
.hidden { display: none !important; }
.panel-header { background: var(--primary-color); color: white; padding: 20px; border-radius: 12px; margin-bottom: 25px; box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15); }
.action-card { border-radius: 12px; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }

.rapor-kart { border-left: 5px solid #198754; margin-bottom: 10px; background: white; padding: 15px; border-radius: 8px;}
.uyari-kart { border-left: 5px solid #dc3545; background-color: #fff3f3; word-break: break-word; }
.denetim-kart { border-left: 5px solid #854d0e; background-color: #fef9c3; margin-bottom: 10px; }

.tiklanabilir-kart { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; -webkit-tap-highlight-color: transparent; }
.tiklanabilir-kart:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.08) !important; }
.tiklanabilir-kart:active { transform: scale(0.98); }

.personel-liste-kart { 
    position: relative; background: #ffffff; border-radius: 10px; border-left: 4px solid #0dcaf0; 
    padding: 12px; padding-right: 95px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); cursor: pointer; transition: all 0.2s;
}
.personel-liste-kart:hover { background: #f8fafc; border-left-width: 6px; }
.proje-liste-kart { background: #ffffff; border-radius: 10px; border-left: 4px solid #0d6efd; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); }

.arsiv-ozet-satir { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 10px 14px; margin-bottom: 8px; border-radius: 8px; border-left: 4px solid #0d6efd; box-shadow: 0 1px 3px rgba(0,0,0,0.02); cursor: pointer; transition: background 0.2s; }
.arsiv-ozet-satir:hover { background: #f1f5f9; }

.kart-duzenle-btn { position: absolute; top: 12px; right: 12px; padding: 4px 10px; font-size: 12px; font-weight: 600; z-index: 5; }
.joker-liste-kart { position: relative; background: #fdfdfe; border-radius: 10px; border-left: 4px solid #dc3545; padding: 12px; padding-right: 95px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); cursor: pointer; }

.canli-takip-kart { border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); background:#fff; }
.durum-aktif { border-left: 5px solid #198754; }
.durum-beklemede { border-left: 5px solid #dc3545; background-color: #fffafb; }

.vardiya-notu { font-size: 11px; color: #6c757d; }
.puantaj-tablo { font-size: 11px; text-align: center; vertical-align: middle; }
.puantaj-hucre { width: 24px; min-width: 24px; font-weight: bold; padding: 4px 0 !important; }
.bg-calisti { background-color: #d1e7dd !important; color: #0f5132; }
.bg-bos { background-color: #f8f9fa !important; color: #6c757d; }

.arsiv-nav .nav-link { color: #495057; font-weight: 500; border-radius: 8px; margin-bottom: 5px; text-align: left; }
.arsiv-nav .nav-link.active { background-color: #0d6efd; color: white; }

.custom-sidebar { width: var(--sidebar-width) !important; background-color: #f8fafc; border-right: 1px solid #e2e8f0; }
.sidebar-menu .nav-link { 
    color: #334155; font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: 10px; margin: 4px 14px; 
    display: flex; align-items: center; gap: 12px; background-color: #f8fafc; border: 1px solid #e2e8f0;
    box-shadow: none; transition: all 0.2s ease-in-out; border-left: 4px solid #cbd5e1;
}
.sidebar-menu .nav-link:hover { background-color: #f1f5f9; color: #0d6efd; border-color: #cbd5e1; border-left-color: #0d6efd; transform: translateX(2px); }
.sidebar-menu .nav-link.active { background-color: #e0f2fe; color: #0369a1; border-color: #bae6fd; border-left-color: #0284c7; }

.menu-trigger-btn { background: white; border: 1px solid #e2e8f0; color: #1e293b; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; transition: all 0.2s; white-space: nowrap; }
.menu-trigger-btn:hover { background: #f1f5f9; color: var(--primary-color); }

.proje-img-card { overflow: hidden; border-radius: 10px; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.04); transition: transform 0.3s; }
.proje-img-card:hover { transform: translateY(-3px); }
.proje-img-card img { height: 160px; object-fit: cover; width: 100%; }

#liveMap { height: 380px; width: 100%; border-radius: 12px; border: 2px solid #e2e8f0; z-index: 1; }

@media (max-width: 768px) {
    .main-wrapper { padding: 10px 0; }
    .panel-header { border-radius: 0; margin: -12px -12px 20px -12px; padding: 15px; flex-wrap: wrap !important; gap: 10px !important; }
    .login-card { margin: 4vh 15px; }
    .row { margin-right: -6px; margin-left: -6px; }
    .row.g-3 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
    .col-6, .col-12 { padding-right: 6px; padding-left: 6px; }
    .main-content { padding: 12px; }
    .container { padding-right: 12px; padding-left: 12px; }
}

footer { background: var(--dark-bg); color: #94a3b8; font-size: 12px; padding: 15px 0; border-top: 3px solid var(--primary-color); z-index: 10; margin-top: auto; width: 100%; }
