:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --success: #22c55e;
    --success-bg: #f0fdf4;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--text);
}

.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-card.wide { max-width: 560px; }

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 52px; height: 52px;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}

.auth-header h1 { font-size: 1.5rem; font-weight: 700; }
.auth-header p  { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1rem;
}

label {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
}

input {
    padding: .65rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    color: var(--text);
    background: #fff;
    transition: border-color .2s;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-select {
    padding: .65rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    color: var(--text);
    background: #fff;
    width: 100%;
    transition: border-color .2s;
    cursor: pointer;
}
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-select:disabled { background: #f8fafc; color: var(--text-muted); cursor: not-allowed; }

.field-warn { font-size: .8rem; color: var(--error); margin-top: .25rem; display: block; }
.text-muted  { color: var(--text-muted); }

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap input { padding-right: 2.5rem; }

.toggle-pw {
    position: absolute; right: .6rem;
    background: none; border: none;
    cursor: pointer; font-size: 1rem;
    color: var(--text-muted);
    padding: .2rem;
    line-height: 1;
}

.btn-primary {
    width: 100%;
    padding: .75rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem;
}

.btn-primary:hover  { background: var(--primary-hover); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; }

.alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.alert.error   { background: var(--error-bg);   color: var(--error);   border: 1px solid #fca5a5; }
.alert.success { background: var(--success-bg); color: #15803d;        border: 1px solid #86efac; }
.hidden { display: none !important; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Dashboard ────────────────────────────────── */
.dashboard-body { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 100vh; padding: 0; background: var(--bg); }

.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: .85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky; top: 0; z-index: 10;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.navbar-brand {
    display: flex; align-items: center; gap: .6rem;
    font-weight: 700; font-size: 1.05rem; color: var(--text);
}

.logo-sm {
    width: 34px; height: 34px;
    background: var(--primary); color: #fff;
    border-radius: 8px; font-size: .8rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.navbar-user { display: flex; align-items: center; gap: 1rem; }

.nav-mail { font-size: .875rem; color: var(--text-muted); }

/* ── Navbar dropdown menü ─────────────────────────────── */
.nav-menu { position: relative; }

.nav-menu-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .85rem;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
}
.nav-menu-btn:hover { border-color: var(--primary); color: var(--primary); }
.nav-menu-arrow { font-size: .65rem; transition: transform .2s; }
.nav-menu-btn[aria-expanded="true"] .nav-menu-arrow { transform: rotate(180deg); }

.nav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + .4rem);
    min-width: 175px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
    padding: .35rem 0;
    list-style: none;
    margin: 0;
    z-index: 200;
    animation: slideDown .15s ease;
}
.nav-dropdown.open { display: block; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-item {
    display: block;
    width: 100%;
    padding: .55rem 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: .875rem;
    color: var(--text);
    cursor: pointer;
    transition: background .15s;
}
.nav-dropdown-item:hover { background: var(--bg); }
.nav-dropdown-danger { color: var(--error) !important; }
.nav-dropdown-danger:hover { background: var(--error-bg) !important; }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: .3rem 0; list-style: none; }

/* ── Online sayfası ──────────────────────────────── */
.online-panel { margin-bottom: 1.25rem; }
.emp-name-cell { font-weight: 600; vertical-align: top; padding-top: .7rem; white-space: nowrap; }
.welcome-card-filter { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.welcome-card-filter > div:first-child { flex: 1; }

.status-filter { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }
.filter-radio { display: flex; align-items: center; gap: .3rem; cursor: pointer; font-size: .82rem; font-weight: 500; padding: .35rem .85rem; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text-muted); transition: background .15s, border-color .15s, color .15s; user-select: none; }
.filter-radio:hover { border-color: var(--primary); color: var(--primary); }
.filter-radio input { display: none; }
.filter-radio:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-radio-online:has(input:checked)  { background: #16a34a; border-color: #16a34a; color: #fff; }
.filter-radio-offline:has(input:checked) { background: #6b7280; border-color: #6b7280; color: #fff; }

.date-input {
    padding: .4rem .75rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .875rem;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    transition: border-color .15s;
}
.date-input:focus { outline: none; border-color: var(--primary); }

.date-badge {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .2rem .65rem;
}

.duration-badge {
    font-size: .8rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 20px;
    padding: .15rem .55rem;
    white-space: nowrap;
}
.dashboard-main { flex: 1; width: 100%; max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; }

.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #fff; border-radius: var(--radius);
    padding: 1.75rem 2rem; margin-bottom: 1.5rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.welcome-card h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.welcome-card p  { opacity: .85; font-size: .95rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.stat-icon { font-size: 1.75rem; line-height: 1; }

.stat-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: .95rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.info-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: .9rem;
    color: #1e40af;
}

/* ── Panels ───────────────────────────────────── */
.panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    overflow: hidden;
}

.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.panel-header h3 { font-size: 1rem; font-weight: 600; color: var(--text); }

.tab-btn {
    padding: .25rem .75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: .8rem; font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: background .15s, color .15s, border-color .15s;
}
.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.tab-btn + .tab-btn { margin-left: .35rem; }

.btn-add {
    padding: .35rem .85rem;
    background: var(--primary);
    color: #fff;
    border: none; border-radius: 7px;
    font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.btn-add:hover { background: var(--primary-hover); }

.dropdown-menu.hidden { display: none; }
.dropdown-menu { display: block; }
.dropdown-item {
    display: block; width: 100%;
    padding: .5rem 1rem;
    background: transparent; border: none;
    text-align: left; cursor: pointer;
    font-size: .875rem; color: var(--text);
    transition: background .15s;
}
.dropdown-item:hover { background: var(--bg); }

.panel-body { overflow-x: auto; }

.data-table {
    width: 100%; border-collapse: collapse;
    font-size: .875rem;
}
.data-table th {
    padding: .6rem 1rem; text-align: left;
    font-size: .75rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: .04em; background: #f8fafc;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

.empty-row { text-align: center; color: var(--text-muted); padding: 1.5rem !important; }
.error-text { color: var(--error) !important; }

.action-cell { text-align: right; white-space: nowrap; width: 70px; }

.btn-icon {
    background: none; border: none;
    cursor: pointer; font-size: .95rem;
    padding: .2rem .3rem; border-radius: 5px;
    transition: background .15s;
}
.btn-icon:hover { background: var(--bg); }

/* ── Modals ───────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 100; padding: 1rem;
}

.modal-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    width: 100%; max-width: 480px;
    animation: slideUp .2s ease;
}

.modal-card.modal-sm { max-width: 360px; }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h4 { font-size: 1rem; font-weight: 700; }

.modal-close {
    background: none; border: none;
    cursor: pointer; font-size: 1rem;
    color: var(--text-muted); padding: .2rem .4rem;
    border-radius: 5px; transition: background .15s;
}
.modal-close:hover { background: var(--bg); }

.modal-body { padding: 1.25rem 1.4rem; }
.modal-body p { color: var(--text-muted); font-size: .95rem; }

.modal-footer {
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: .75rem;
}

.btn-secondary {
    padding: .6rem 1.2rem;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 8px; font-size: .9rem;
    font-weight: 500; color: var(--text-muted);
    cursor: pointer; transition: all .2s;
}
.btn-secondary:hover { border-color: #94a3b8; color: var(--text); }

.btn-danger {
    padding: .6rem 1.2rem;
    background: var(--error); color: #fff;
    border: none; border-radius: 8px;
    font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.btn-danger:hover { background: #dc2626; }

@media (max-width: 700px) {
    .panels-grid { grid-template-columns: 1fr; }
    .hide-mobile { display: none !important; }
}

/* ── Badge ────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.badge-role-admin   { background: #dbeafe; color: #1d4ed8; }
.badge-role-manager { background: #dcfce7; color: #15803d; }
.badge-role-boss    { background: #fef9c3; color: #854d0e; }

/* LeaveBalance etki badge'leri */
.balance-grant { display:inline-block; padding:.15rem .55rem; border-radius:20px; font-size:.75rem; font-weight:600; background:#dcfce7; color:#15803d; }
.balance-used  { display:inline-block; padding:.15rem .55rem; border-radius:20px; font-size:.75rem; font-weight:600; background:#fee2e2; color:#991b1b; }

/* Takvim: çalışan bakiye chip */
.balance-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .4rem .75rem;
    min-width: 90px;
    text-align: center;
}
.balance-chip-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.balance-chip-val   { font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.balance-chip-sub   { font-size: .68rem; color: #94a3b8; margin-top: .1rem; }
.badge-telefon      { background: #dcfce7; color: #15803d; }
.badge-pc           { background: #bbf7d0; color: #166534; }
.badge-tablet       { background: #fef9c3; color: #854d0e; }
.badge-device-offline { background: #f3f4f6; color: #9ca3af; }
.badge-online       { background: #dcfce7; color: #15803d; }
.badge-offline      { background: #f3f4f6; color: #6b7280; }
.last-online-cell { font-size: .8rem; color: #6b7280; white-space: nowrap; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    margin-top: auto;
    font-size: .8rem;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.footer-sep { color: #d1d5db; }

@media (max-width: 480px) {
    .auth-card { padding: 1.75rem 1.25rem; }
    .form-row  { grid-template-columns: 1fr; }
    .navbar    { padding: .75rem 1rem; }
    .nav-mail  { display: none; }
}

/* ── Dashboard: Şirket Kartları ──────────────────── */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .15s;
}
.stat-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); transform: translateY(-2px); }
.stat-card-title { font-size: .95rem; font-weight: 700; color: var(--text); }
.stat-card-value { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-card-link  { margin-top: .75rem; font-size: .8rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.stat-card-link:hover { text-decoration: underline; }
.stat-card-skeleton {
    background: var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: .9rem;
}

/* ── Dashboard: Hızlı Erişim ─────────────────────── */
.quick-link-card {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: background .15s, box-shadow .15s;
}
.quick-link-card:hover { background: #f0f7ff; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.quick-link-icon { font-size: 1.3rem; }

/* ── Calendar ─────────────────────────────────── */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    user-select: none;
    -webkit-user-select: none;
}

.cal-header-cell {
    text-align: center;
    padding: .55rem .25rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.cal-header-cell:last-child { border-right: none; }

.cal-day {
    min-height: 90px;
    padding: .4rem .5rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .12s;
    overflow: hidden;
}
.cal-day:hover { background: #f0f7ff; }
.cal-day:nth-child(7n) { border-right: none; }

.cal-day.other-month { background: #f8fafc; }
.cal-day.other-month .cal-day-num { color: #cbd5e1; }

.cal-day.weekend { background: #f1f5f9; }
.cal-day.weekend .cal-day-num { color: #94a3b8; }

.cal-day.holiday { background: #fff1f2; }
.cal-day.holiday .cal-day-num {
    background: #be123c;
    color: #fff;
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

.holiday-dot { display: none; }

.cal-day.today { background: #f0fdf4; }
.cal-day.today .cal-day-num {
    background: #16a34a;
    color: #fff;
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
}

.cal-day-num {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .25rem;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
}

.leave-badge {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    padding: .1rem .35rem;
    border-radius: 4px;
    margin-bottom: .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: opacity .15s;
    position: relative;
    z-index: 2;
}
.leave-badge:hover { opacity: .8; }

/* Ard\u0131\u015f\u0131k izin birle\u015ftirme */
.leave-span-start {
    border-radius: 4px 0 0 4px !important;
    margin-right: -.5rem;
}
.leave-span-mid {
    border-radius: 0 !important;
    margin-left:  -.5rem;
    margin-right: -.5rem;
    padding-left: .5rem;
}
.leave-span-end {
    border-radius: 0 4px 4px 0 !important;
    margin-left: -.5rem;
    padding-left: .5rem;
}

/* Track hizalama placeholder */
.leave-badge-placeholder {
    display: block;
    height: 1.15rem;
    margin-bottom: .1rem;
    visibility: hidden;
}

/* Do\u011fum g\u00fcn\u00fc badge */
.birthday-badge {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    padding: .1rem .35rem;
    border-radius: 4px;
    margin-bottom: .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fed7aa;
    color: #9a3412;
    cursor: default;
}

.leave-yillikizin   { background: #1e3a5f; color: #bfdbfe; }
.leave-hastalikizin { background: #e5e7eb; color: #374151; }
.leave-evlilikizin  { background: #ede9fe; color: #5b21b6; }
.leave-babalikizin  { background: #fce7f3; color: #9d174d; }
.leave-annelikizin  { background: #fce7f3; color: #9d174d; }
.leave-teknoizin    { background: #fef3c7; color: #92400e; }
.leave-mazeret      { background: #fee2e2; color: #991b1b; }
.leave-fazlamesai   { background: #1f2937; color: #f9fafb; }
.leave-dogumgunuizni { background: #fed7aa; color: #92400e; }

.cal-nav-btn {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .35rem .85rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all .15s;
    color: var(--text);
    font-weight: 600;
}
.cal-nav-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Calendar: Seçim & Action Bar ─────────────── */
.cal-day.selected {
    background: #dbeafe !important;
}
.cal-day.selected .cal-day-num {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
}

.cal-action-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.25rem;
    min-height: 55px;
    background: #1e40af;
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    border-top: 1px solid #1d4ed8;
    border-radius: 0 0 var(--radius) var(--radius);
}

.cal-action-btn {
    padding: .35rem .85rem;
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.cal-action-btn:hover { background: rgba(255,255,255,.15); }
.cal-action-btn.primary { background: #fff; color: #1e40af; border-color: #fff; }
.cal-action-btn.primary:hover { background: #dbeafe; }

/* Drag se\u00e7im \u00f6nizleme */
.cal-day.drag-preview {
    background: #bfdbfe !important;
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.cal-day.drag-preview.drag-remove {
    background: #fee2e2 !important;
    outline-color: var(--error);
}

/* ── Calendar: Modal tarih tag'leri ──────────── */
.dates-container {
    min-height: 40px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .4rem .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    background: #fff;
}

.date-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #dbeafe;
    color: #1e40af;
    font-size: .78rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: 20px;
}
.date-tag button {
    background: none;
    border: none;
    cursor: pointer;
    color: #1e40af;
    font-size: .75rem;
    padding: 0 .1rem;
    line-height: 1;
    opacity: .6;
}
.date-tag button:hover { opacity: 1; }

