/* ── Akkızhan Otel — site.css ───────────────────────────────────────────── */
/* Palette: zeytinyağı yeşili, krem, derin lacivert */

:root {
    --ak-green: #3d6b47;
    --ak-green2: #4e8a5a;
    --ak-cream: #f7f3ec;
    --ak-navy: #1e3a5f;
    --ak-gold: #c9a94e;
    --ak-text: #1a1a1a;
    --ak-muted: #6b7280;
    --ak-border: #e2ddd5;
    --ak-radius: 12px;
    --ak-bottom-h: 68px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.akkizhan-body {
    background-image: url("/images/login-bg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--ak-cream);
    color: var(--ak-text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100dvh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

    body.akkizhan-body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(247, 243, 236, 0.88);
        z-index: 0;
        pointer-events: none;
    }

    body.akkizhan-body > *:not(.ak-bottom-nav) {
        position: relative;
        z-index: 1;
    }


/* ── Top bar ───────────────────────────────────────────────────────────── */
.ak-topbar {
    background: var(--ak-navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 52px;
}

.ak-logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.ak-user-badge {
    font-size: .8rem;
    background: rgba(255,255,255,.12);
    padding: 4px 10px;
    border-radius: 20px;
}

/* ── Main ──────────────────────────────────────────────────────────────── */
.ak-main {
    padding-bottom: calc(var(--ak-bottom-h) + var(--safe-bottom) + 32px);
    min-height: 100dvh;
}

/* ── Bottom nav ────────────────────────────────────────────────────────── */
.ak-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--ak-bottom-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: #fff;
    border-top: 1px solid var(--ak-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.ak-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--ak-muted);
    text-decoration: none;
    font-size: .68rem;
    padding: 6px 12px;
    border-radius: 10px;
    transition: color .15s;
    flex: 1;
    min-width: 0;
}

    .ak-nav-item i {
        font-size: 1.35rem;
    }

    .ak-nav-item.active {
        color: var(--ak-green);
    }

        .ak-nav-item.active i {
            color: var(--ak-green);
        }

.ak-nav-add {
    background: var(--ak-green);
    color: #fff !important;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 0;
    margin-bottom: 8px;
    box-shadow: 0 4px 14px rgba(61,107,71,.4);
}

    .ak-nav-add i {
        font-size: 1.5rem;
    }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.ak-card {
    background: #fff;
    border-radius: var(--ak-radius);
    border: 1px solid var(--ak-border);
    padding: 16px;
    margin-bottom: 12px;
}

.ak-card-header {
    font-weight: 600;
    font-size: .95rem;
    color: var(--ak-navy);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ak-border);
}

/* ── Oda renk badges ───────────────────────────────────────────────────── */
.ak-oda-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

/* ── Rezervasyon satır ─────────────────────────────────────────────────── */
.ak-rez-item {
    border-left: 3px solid var(--ak-green);
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 0 8px 8px 0;
}

    .ak-rez-item .musteri {
        font-weight: 600;
        font-size: .92rem;
    }

    .ak-rez-item .tarihler {
        font-size: .8rem;
        color: var(--ak-muted);
    }

    .ak-rez-item .ekleyen {
        font-size: .75rem;
        color: var(--ak-muted);
    }

/* ── Kahvaltı item ─────────────────────────────────────────────────────── */
.ak-khv-item {
    border-left: 3px solid var(--ak-gold);
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 0 8px 8px 0;
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.ak-form-section {
    background: #fff;
    border-radius: var(--ak-radius);
    border: 1px solid var(--ak-border);
    padding: 20px 16px;
    margin: 12px 0;
}

.form-label {
    font-size: .88rem;
    font-weight: 500;
    color: var(--ak-navy);
}

.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--ak-border);
    font-size: .92rem;
    padding: 10px 12px;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--ak-green);
        box-shadow: 0 0 0 3px rgba(61,107,71,.15);
    }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-ak-primary {
    background: var(--ak-green);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: .95rem;
    font-weight: 600;
    width: 100%;
    transition: background .15s;
}

    .btn-ak-primary:hover {
        background: var(--ak-green2);
        color: #fff;
    }

.btn-ak-outline {
    background: transparent;
    color: var(--ak-green);
    border: 1.5px solid var(--ak-green);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: .9rem;
    font-weight: 500;
    transition: all .15s;
}

    .btn-ak-outline:hover {
        background: var(--ak-green);
        color: #fff;
    }

/* ── Toast bildirimi ───────────────────────────────────────────────────── */
.ak-toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ak-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: .88rem;
    font-weight: 500;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    transition: opacity .4s;
    white-space: nowrap;
}

.ak-toast--danger {
    background: #dc2626;
}

.ak-toast.hide {
    opacity: 0;
    pointer-events: none;
}

/* ── FullCalendar overrides ────────────────────────────────────────────── */
.fc {
    font-size: .82rem !important;
}

    .fc .fc-toolbar-title {
        font-size: 1rem !important;
        font-weight: 600;
        color: var(--ak-navy);
    }

    .fc .fc-button {
        background: var(--ak-navy) !important;
        border-color: var(--ak-navy) !important;
        border-radius: 8px !important;
        font-size: .78rem !important;
        padding: 4px 10px !important;
    }

    .fc .fc-daygrid-event {
        border-radius: 4px;
        font-size: .75rem;
        padding: 1px 4px;
    }

    .fc .fc-day-today {
        background: rgba(61,107,71,.08) !important;
    }

    .fc .fc-daygrid-day-number {
        color: var(--ak-navy);
        font-size: .8rem;
    }

/* ── Dashboard günlük özet ─────────────────────────────────────────────── */
.ak-daily-stat {
    background: var(--ak-navy);
    color: #fff;
    border-radius: var(--ak-radius);
    padding: 12px 16px;
    margin: 0 12px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ak-daily-stat .num {
        font-size: 1.6rem;
        font-weight: 700;
    }

    .ak-daily-stat .label {
        font-size: .78rem;
        opacity: .8;
    }

/* ── Müsaitlik indikatörü ──────────────────────────────────────────────── */
.musaitlik-ok {
    color: var(--ak-green);
    font-size: .82rem;
}

.musaitlik-dolu {
    color: #dc2626;
    font-size: .82rem;
}

/* ── Login sayfası ─────────────────────────────────────────────────────── */
.ak-login-wrap {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ak-navy);
    padding: 16px;
}

.ak-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 24px;
    width: 100%;
    max-width: 380px;
}

.ak-login-logo {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4px;
}

.ak-login-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ak-navy);
    margin-bottom: 24px;
}

/* ── Responsive desktop ────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .ak-main {
        max-width: 900px;
        margin: 0 auto;
        padding: 16px 24px calc(var(--ak-bottom-h) + var(--safe-bottom) + 40px);
    }

    .ak-bottom-nav {
        max-width: 900px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ── Takvim çizgileri koyulaştırma ─────────────────────────────────────── */
.fc .fc-scrollgrid {
    border-color: #b8b0a4 !important;
}

.fc td, .fc th {
    border-color: #b8b0a4 !important;
}

.fc .fc-col-header-cell {
    background: rgba(30,58,95,.06);
}

.fc .fc-col-header-cell-cushion {
    color: var(--ak-navy);
    font-weight: 600;
    font-size: .8rem;
}
