/* ==========================================================
   Kurumsal, sade, beyaz ağırlıklı tema — Inter
   ========================================================== */
:root {
    --bg:        #f7f8fa;
    --surface:   #ffffff;
    --border:    #e9ecef;
    --text:      #212529;
    --muted:     #6c757d;
    --navy:      #0c244a;   /* Logo laciverti */
    --navy-dark: #081a38;
    --green:     #5ca52c;   /* Logo yeşili */
    --dark:      #0c244a;
    --sidebar-w: 248px;
}

* { font-family: 'Inter', system-ui, sans-serif; }
body { background: var(--bg); color: var(--text); font-size: 14px; }

/* ---------- Yerleşim ---------- */
.app-wrap { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed; inset: 0 auto 0 0;
    z-index: 1030;
    display: flex; flex-direction: column;
}
.main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex; flex-direction: column;
    min-width: 0;
}

/* ---------- Sidebar ---------- */
.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--dark); color: #fff;
    font-weight: 700; font-size: 13px; letter-spacing: .5px;
}
.brand-mark-lg { width: 48px; height: 48px; font-size: 17px; border-radius: 12px; }
.brand-name { font-weight: 600; font-size: 15px; }
.brand-logo { max-width: 160px; height: auto; display: block; margin: 0 auto; }
.login-logo { max-width: 200px; height: auto; margin-bottom: 6px; }

.sidebar-nav { padding: 12px 10px; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin-bottom: 2px;
    border-radius: 8px;
    color: var(--muted); text-decoration: none;
    font-weight: 500; font-size: 13.5px;
    transition: background .12s, color .12s;
}
.nav-item i { font-size: 16px; width: 18px; text-align: center; }
.nav-item:hover  { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--navy); color: #fff; }
.nav-item.active i { color: #8fd05e; }

/* ---------- Topbar ---------- */
.topbar {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    position: sticky; top: 0; z-index: 1020;
}
.topbar-title { font-weight: 600; font-size: 16px; flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 12px; }
.user-name { color: var(--muted); font-weight: 500; }
.btn-toggle { border: 0; background: none; font-size: 22px; line-height: 1; }

/* ---------- İçerik ---------- */
.content { padding: 24px; }

/* ---------- Kartlar ---------- */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    display: flex; align-items: center; gap: 14px;
    height: 100%;
}
.stat-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--bg);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--muted);
    flex-shrink: 0;
}
.stat-value { font-size: 19px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }

.card { border: 1px solid var(--border); border-radius: 12px; }

/* ---------- Tablolar ---------- */
.table { font-size: 13.5px; }
.table thead th {
    background: var(--bg);
    font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .4px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

/* ---------- WhatsApp butonu ---------- */
.btn-wa {
    background: #25d366; color: #fff;
    border: 0; border-radius: 8px;
    padding: 4px 10px; font-size: 13px;
}
.btn-wa:hover { background: #1fb457; color: #fff; }

/* ---------- Giriş sayfası ---------- */
.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; background: var(--bg);
    padding: 16px;
}
.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    width: 100%; max-width: 400px;
}
.login-title { font-size: 19px; font-weight: 700; margin: 14px 0 2px; }
.login-sub { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); transition: transform .18s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.15); }
    .main { margin-left: 0; }
    .content { padding: 16px; }
}

/* ---------- Marka butonları ---------- */
.btn-dark { background: var(--navy); border-color: var(--navy); }
.btn-dark:hover, .btn-dark:focus { background: var(--navy-dark); border-color: var(--navy-dark); }
.text-success { color: var(--green) !important; }
.stat-icon { color: var(--navy); background: #eef2f7; }

/* ---------- Personel fotoğrafları ---------- */
.staff-photo {
    width: 64px; height: 64px;
    border-radius: 12px; object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.staff-photo-lg { width: 110px; height: 110px; border-radius: 16px; }
.staff-photo-empty {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg); color: var(--muted); font-size: 26px;
}
.staff-photo-lg.staff-photo-empty { font-size: 44px; }
.min-w-0 { min-width: 0; }
.staff-photo-sm { width: 40px; height: 40px; border-radius: 8px; font-size: 18px; }

/* ---------- Takvim ---------- */
.cal-month { table-layout: fixed; min-width: 700px; }
.cal-month th { background: var(--bg); font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-cell { height: 110px; vertical-align: top; padding: 6px; }
.cal-out { background: #fbfcfd; }
.cal-out .cal-daynum { color: #c3c9cf; }
.cal-today { background: #f2f6fc; box-shadow: inset 0 0 0 2px var(--navy); }
.cal-daynum {
    display: inline-block; font-size: 12px; font-weight: 600;
    color: var(--muted); text-decoration: none; margin-bottom: 4px;
}
.cal-chip {
    display: block; font-size: 11px; line-height: 1.3;
    padding: 2px 6px; margin-bottom: 3px;
    border-radius: 5px; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-left: 3px solid transparent;
}
.cal-more { display: block; font-size: 11px; color: var(--muted); text-decoration: none; }

.chip-warning   { background: #fdf4dc; color: #8a6d1a; border-left-color: #e2b93b !important; }
.chip-info      { background: #e7f1fb; color: #1d5b96; border-left-color: #4d94d6 !important; }
.chip-success   { background: #edf6e4; color: #3f7317; border-left-color: var(--green) !important; }
.chip-secondary { background: #f1f3f5; color: #6c757d; border-left-color: #adb5bd !important; text-decoration: line-through; }

.cal-week-item {
    display: block; padding: 6px 8px; margin-bottom: 6px;
    border-radius: 8px; text-decoration: none;
    border-left: 3px solid transparent; font-size: 12.5px;
}
.cal-time {
    width: 56px; text-align: center; border-radius: 8px;
    padding: 6px 4px; font-weight: 600; font-size: 14px; line-height: 1.1;
    border-left: 3px solid transparent; flex-shrink: 0;
}

/* ---------- Landing ---------- */
.landing, .portal-body { background: var(--bg); }
.landing-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky; top: 0; z-index: 1030;
}
.landing-logo { height: 34px; width: auto; }
.landing-hero { padding: 72px 0 64px; }
.hero-title { font-size: clamp(30px, 5vw, 48px); font-weight: 800; color: var(--navy); line-height: 1.15; }
.text-brand-green { color: var(--green); }
.hero-sub { font-size: 17px; color: var(--muted); margin-top: 16px; }

.landing-section { padding: 56px 0; }
.section-title { font-size: 26px; font-weight: 700; color: var(--navy); }

.step-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 26px; height: 100%; text-align: center;
}
.step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; margin-bottom: 14px;
}
.step-card h5 { font-size: 16px; font-weight: 600; }
.step-card p { color: var(--muted); font-size: 14px; margin: 0; }

.service-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 10px; text-align: center;
    font-size: 13.5px; font-weight: 500; height: 100%;
}
.service-card i { font-size: 26px; color: var(--green); display: block; margin-bottom: 10px; }

.feature-list { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-list li { padding: 8px 0; font-size: 15.5px; }
.feature-list i { color: var(--green); margin-right: 10px; }

.landing-cta { background: var(--navy); color: #fff; padding: 56px 0; }
.landing-cta h2 { font-weight: 700; }

.landing-footer {
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 20px 0; font-size: 13.5px; color: var(--muted);
}
.landing-footer a { color: var(--muted); text-decoration: none; }
.landing-footer a:hover { color: var(--navy); }

/* ---------- Yüzen iletişim butonları ---------- */
.float-actions {
    position: fixed; right: 18px; bottom: 18px;
    display: flex; flex-direction: column; gap: 12px;
    z-index: 1050;
}
.float-btn {
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    transition: transform .12s ease;
}
.float-btn:hover { transform: scale(1.07); color: #fff; }
.float-call { background: var(--navy); }
.float-wa   { background: #25d366; }

/* ---------- Footer imza ---------- */
.footer-credit { font-size: 12.5px; color: #9aa1a8; }
.footer-credit a { color: var(--navy); font-weight: 500; }



/* ---------- Kompakt hero slider ---------- */
.hero-carousel {
    max-width: 920px;
    margin-left: auto; margin-right: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(12,36,74,.12);
}
.hero-carousel .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 767.98px) {
    .hero-carousel { border-radius: 12px; }
    .hero-carousel .carousel-item img { height: 240px; }
}

/* ---------- Form alanları daha belirgin ---------- */
/* Giriş/kayıt/başvuru sayfalarında zemin biraz daha koyu, kart öne çıksın */
.login-page { background: #eef1f5; }
.login-card { box-shadow: 0 8px 28px rgba(12,36,74,.08); }

/* Girdi kutuları: hafif gri zemin + belirgin çerçeve */
.form-control, .form-select {
    background-color: #f7f9fb;
    border: 1.5px solid #cfd6dd;
}
.form-control::placeholder { color: #a8b0b9; }
.form-control:focus, .form-select:focus {
    background-color: #fff;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(12,36,74,.12);
}

/* Seçim kutucukları (checkbox): büyük ve belirgin */
.form-check-input {
    width: 1.15em; height: 1.15em;
    border: 1.5px solid #9aa5b1;
    background-color: #fff;
}
.form-check-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(12,36,74,.12);
}
.form-check-input:checked {
    background-color: var(--green);
    border-color: var(--green);
}

/* ==========================================================
   Admin panel görsel iyileştirmeleri
   ========================================================== */

/* Sidebar: aktif öğede yeşil vurgu çizgisi, yumuşak geçişler */
.sidebar-brand { padding: 20px; }
.nav-item { position: relative; }
.nav-item.active::before {
    content: '';
    position: absolute; left: -10px; top: 8px; bottom: 8px;
    width: 4px; border-radius: 0 4px 4px 0;
    background: var(--green);
}

/* Yeni başvuru rozeti */
.menu-badge {
    margin-left: auto;
    background: #dc3545; color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 999px;
    line-height: 1.4;
}
.nav-item.active .menu-badge { background: #fff; color: var(--navy); }

/* Topbar: hafif derinlik */
.topbar { box-shadow: 0 1px 3px rgba(12,36,74,.05); }

/* Kartlar: yumuşak gölge + hover'da hafif yükselme */
.card, .stat-card {
    box-shadow: 0 1px 3px rgba(12,36,74,.06);
    border-color: #e4e8ed;
}
.stat-card { transition: box-shadow .15s ease, transform .15s ease; }
.stat-card:hover {
    box-shadow: 0 6px 18px rgba(12,36,74,.10);
    transform: translateY(-2px);
}

/* İstatistik ikonları: duruma göre renkli zemin */
.stat-icon { background: #eef2f7; color: var(--navy); }
.stat-icon.text-success { background: #e9f4de; color: var(--green) !important; }
.stat-icon.text-warning { background: #fdf4dc; color: #b8860b !important; }

/* Tablolar: satır hover tonu, başlıklar daha ferah */
.table thead th { padding-top: 12px; padding-bottom: 12px; }
.table tbody tr { transition: background .1s; }
.table-hover tbody tr:hover { background: #f4f7fa; }

/* Butonlar: tutarlı yuvarlaklık */
.btn { border-radius: 8px; }
.btn-group .btn { border-radius: 8px; }
.btn-group .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Rozetler: köşeler yumuşak */
.badge { border-radius: 6px; font-weight: 600; }

/* Sayfalama: marka rengi */
.pagination .page-link { color: var(--navy); }
.pagination .active .page-link { background: var(--navy); border-color: var(--navy); }

/* ---------- Çift CTA kartları (firma + personel) ---------- */
.cta-card {
    border-radius: 18px;
    padding: 40px 36px;
    height: 100%;
    display: flex; flex-direction: column;
    align-items: flex-start;
}
.cta-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.cta-card p { margin-bottom: 18px; opacity: .85; }

.cta-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 18px;
}

.cta-list { list-style: none; padding: 0; margin: 0 0 20px; }
.cta-list li { padding: 6px 0; font-size: 15px; display: flex; align-items: center; gap: 10px; }

/* Firma kartı: lacivert */
.cta-company { background: var(--navy); color: #fff; }
.cta-company .cta-icon { background: rgba(255,255,255,.12); color: #fff; }
.cta-company .cta-list i { color: #8fd05e; }

/* Personel kartı: yeşil tonlu açık */
.cta-worker { background: #f1f8e9; border: 1px solid #dcead0; color: var(--text); }
.cta-worker h3 { color: var(--navy); }
.cta-worker .cta-icon { background: var(--green); color: #fff; }
.cta-worker .cta-list i { color: var(--green); }

.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover, .btn-green:focus { background: #4e8c24; border-color: #4e8c24; color: #fff; }

@media (max-width: 575.98px) {
    .cta-card { padding: 28px 22px; }
    .cta-card h3 { font-size: 20px; }
}
