/* ═══════════════════════════════════════════════════════════════════════════
   CARRİER PREMİUM — Orijinal Zarif Tasarım
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --color-bg: #f2f2f7;
    --color-surface: #ffffff;
    --color-text: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-accent: #a88fd8;
    --color-accent-dark: #8b6fc4;
    --color-gold: #c9a34f;
    --color-success: #30d158;
    --color-warning: #ff9f0a;
    --color-danger: #ff375f;
    --color-info: #0a84ff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --sidebar-width: 260px;
    --topbar-height: 72px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--color-bg); color: var(--color-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1,h2,h3,h4,p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: var(--color-accent); text-decoration: none; }

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.app-shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; position: relative; }

/* ─── SIDEBAR ────────────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: #1d1d1f;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    overflow-y: auto;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    backdrop-filter: blur(2px);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px 28px;
}
.logo-mark {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #f6e6ff, var(--color-accent));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 20px; color: #1d1d1f;
    flex-shrink: 0;
}
.logo-title { display: block; font-weight: 700; font-size: 17px; }
.logo-subtitle { display: block; font-size: 10px; color: #6e6e73; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-section-title { font-size: 10px; color: #48484a; text-transform: uppercase; letter-spacing: 1.2px; padding: 16px 12px 6px; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    background: none; border: none;
    color: #a1a1a6; padding: 10px 12px;
    border-radius: var(--radius-md); width: 100%;
    text-align: left; font-size: 14px; font-weight: 500;
    transition: var(--transition);
}
.nav-item:hover { color: white; background: rgba(255,255,255,0.07); }
.nav-item-active { color: white !important; background: rgba(255,255,255,0.12) !important; }
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer { padding-top: 16px; border-top: 1px solid #2c2c2e; margin-top: 12px; }
.user-profile { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--radius-md); transition: background 0.2s; cursor: default; background: transparent; border: none; width: 100%; text-align: left; color: white; }
.user-profile:hover { background: rgba(255,255,255,0.05); }
.user-avatar { width: 34px; height: 34px; background: var(--color-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; color: #fff; }
.user-name { display: block; font-size: 13px; font-weight: 600; }
.user-role { display: block; font-size: 11px; color: #86868b; }

/* ─── MAIN CONTENT ───────────────────────────────────────────────────────── */
.main-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }

/* ─── TOPBAR ─────────────────────────────────────────────────────────────── */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px;
    background: rgba(242,242,247,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 50;
    min-height: var(--topbar-height);
    gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-right { flex-shrink: 0; }
.page-title { font-size: 24px; font-weight: 700; line-height: 1.2; }
.page-subtitle { color: var(--color-text-secondary); font-size: 12px; margin-top: 2px; }
.menu-toggle { display: none; background: white; border: none; font-size: 20px; padding: 8px 10px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); flex-shrink: 0; }

/* ─── PAGE SECTIONS ──────────────────────────────────────────────────────── */
.page-section { display: none; flex-direction: column; gap: 20px; padding: 24px 28px 40px; }
.page-section-active { display: flex; }

/* ─── CARDS ──────────────────────────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.6px; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--color-accent);
    color: white; border: none;
    padding: 11px 20px;
    border-radius: 25px;
    font-size: 14px; font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(168,143,216,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 20px; }

.btn-secondary { background: var(--color-bg); color: var(--color-text); border: 1px solid rgba(0,0,0,0.1); padding: 11px 20px; border-radius: 25px; font-size: 14px; font-weight: 500; transition: var(--transition); }
.btn-secondary:hover { background: #e8e8ed; }

.btn-danger { background: var(--color-danger); color: white; border: none; padding: 11px 20px; border-radius: 25px; font-size: 14px; font-weight: 600; transition: var(--transition); }
.btn-danger:hover { background: #e0314f; }

.btn-ghost { background: none; border: none; color: var(--color-text); padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); }
.btn-ghost:hover { background: rgba(0,0,0,0.06); }
.btn-icon-round { width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 20px; }

.btn-icon { background: none; border: 1px solid transparent; padding: 6px 8px; border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition); color: var(--color-text-secondary); }
.btn-icon:hover { background: var(--color-bg); border-color: rgba(0,0,0,0.08); color: var(--color-text); }
.btn-icon-danger:hover { background: #fff0f3; color: var(--color-danger); border-color: var(--color-danger); }

.w-full { width: 100%; }

/* ─── BADGES ─────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-success { background: rgba(48,209,88,0.15); color: #218e3b; }
.badge-danger { background: rgba(255,55,95,0.12); color: #c0133f; }
.badge-info { background: rgba(10,132,255,0.12); color: #0060c0; }
.badge-warning { background: rgba(255,159,10,0.15); color: #a05800; }

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
label { font-size: 13px; font-weight: 600; color: #3c3c43; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="time"], input[type="search"], select, textarea {
    padding: 11px 14px;
    border: 1.5px solid #d1d1d6;
    border-radius: var(--radius-md);
    font-size: 14px;
    background: #fafafa;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(168,143,216,0.2);
    background: white;
}
input[readonly] { background: #f2f2f7; color: var(--color-text-secondary); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 4px; }

/* ─── TABLES ─────────────────────────────────────────────────────────────── */
.table-container { 
    width: 100%; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    /* Mobilde taşmayı engelleyen kesin kural */
    max-width: 100vw; 
}
.data-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 14px; 
    /* Tablonun kendi kendini daraltmasını engeller, yatay scroll tetikler */
    min-width: 500px; 
}
.data-table th { padding: 10px 14px; border-bottom: 2px solid var(--color-bg); color: var(--color-text-secondary); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-bg); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }
.empty-td { text-align: center; padding: 32px !important; color: var(--color-text-secondary); }
.action-cell { white-space: nowrap; }

/* ─── SECTION TOOLBARS ───────────────────────────────────────────────────── */
.section-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-2col { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }

/* ─── CALENDAR ───────────────────────────────────────────────────────────── */
.calendar-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.calendar-week-label { font-size: 15px; font-weight: 600; min-width: 200px; text-align: center; }
.view-toggle { display: flex; background: var(--color-bg); border-radius: 10px; padding: 3px; gap: 2px; margin-left: auto; }
.view-btn { background: none; border: none; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--color-text-secondary); transition: var(--transition); }
.view-btn-active { background: white; color: var(--color-text); box-shadow: var(--shadow-sm); }

.calendar-container { padding: 0; overflow: hidden; }

.cal-week { display: flex; flex-direction: column; height: 100%; }
.cal-header-row {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    border-bottom: 1.5px solid var(--color-bg);
    background: #fafafa;
    z-index: 10;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.cal-time-gutter { position: relative; }
.cal-day-header { padding: 10px 6px; text-align: center; border-left: 1px solid var(--color-bg); }
.cal-day-name { display: block; font-size: 11px; font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.cal-day-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; font-weight: 600; margin-top: 2px; }
.cal-today-header { background: rgba(168,143,216,0.05); }
.cal-today-num { background: var(--color-accent); color: white; }

.cal-body-scroll { overflow-y: auto; flex: 1; max-height: calc(100vh - 280px); }
.cal-body {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    position: relative;
}
.cal-hour-label { position: absolute; right: 8px; font-size: 11px; color: var(--color-text-secondary); transform: translateY(-50%); white-space: nowrap; }

.cal-day-col { border-left: 1px solid rgba(0,0,0,0.06); position: relative; min-height: 100%; }
.cal-today-col { background: rgba(168,143,216,0.03); }
.cal-hour-line { position: absolute; left: 0; right: 0; height: 70px; border-top: 1px solid rgba(0,0,0,0.06); cursor: pointer; transition: background 0.15s; }
.cal-hour-line:hover { background: rgba(168,143,216,0.06); }

/* TAKVİM İSİM TAŞMASI DÜZELTMESİ (ORİJİNAL TASARIMA ENTEGRE) */
.cal-appointment {
    position: absolute; left: 3px; right: 3px;
    border-radius: 6px; padding: 4px 6px;
    cursor: pointer; border-left: 3px solid transparent;
    overflow: hidden;
    transition: box-shadow 0.15s, height 0.15s ease-out, z-index 0s;
    z-index: 5;
}
.cal-appointment:hover {
    height: auto !important; 
    min-height: 0 !important;
    bottom: auto !important;
    z-index: 50; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    background-color: #ffffff !important; 
    border: 1px solid rgba(0,0,0,0.08);
}
.cal-app-name { display: block; font-size: 12px; font-weight: 600; white-space: normal; line-height: 1.2; margin-bottom: 3px; }
.cal-app-service { display: block; font-size: 11px; opacity: 0.85; white-space: normal; line-height: 1.2; }

/* List view */
.list-view { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.list-date-group { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.list-date-header { padding: 10px 14px; background: var(--color-bg); font-size: 13px; font-weight: 700; }
.list-appointment-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--color-bg); cursor: pointer; transition: background 0.15s; }
.list-appointment-row:last-child { border-bottom: none; }
.list-appointment-row:hover { background: #fafafa; }
.list-time { font-size: 13px; font-weight: 700; min-width: 100px; }
.list-customer { font-size: 14px; font-weight: 600; flex: 1; }
.list-service { font-size: 13px; min-width: 100px; }
.list-status { flex-shrink: 0; }

/* ─── WHATSAPP TABLO GENİŞLETME DÜZELTMESİ ───────────────────────────────── */
/* Eski kod: grid-template-columns: 1fr 380px; şeklindeydi ve sağ tarafa sıkıştırıyordu. Tam genişlik için düzeltildi */
.settings-grid { display: flex; flex-direction: column; gap: 20px; }

/* ─── MODALS ─────────────────────────────────────────────────────────────── */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); overflow-y: auto; }
.modal.modal-open { display: flex; }
.modal-dialog { background: white; border-radius: var(--radius-lg); width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: modal-in 0.25s cubic-bezier(0.34,1.56,0.64,1); margin: auto; }
@keyframes modal-in { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--color-bg); position: sticky; top: 0; background: white; z-index: 1; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { background: var(--color-bg); border: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--color-text-secondary); transition: var(--transition); }
.modal-close:hover { background: rgba(255,55,95,0.12); color: var(--color-danger); }
.modal-body { padding: 22px; }
body.has-modal { overflow: hidden; }

/* ─── TOAST ──────────────────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: #1d1d1f; color: white; padding: 12px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px) scale(0.96); transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); pointer-events: all; max-width: 340px; }
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-success { background: #1c3d27; border-left: 3px solid var(--color-success); }
.toast-error { background: #3d1c23; border-left: 3px solid var(--color-danger); }

/* ─── WHATSAPP BUTONU ────────────────────────────────────────────────────── */
.btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #25d366; color: white; font-size: 14px; text-decoration: none; transition: transform 0.15s; flex-shrink: 0; }
.btn-whatsapp:hover { transform: scale(1.1); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .section-2col { grid-template-columns: 1fr; }
    .cal-body, .cal-header-row { grid-template-columns: 56px repeat(7, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .sidebar { position: fixed; top: 0; left: 0; height: 100%; transform: translateX(-100%); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-overlay { display: block; }
    .page-section { padding: 16px 16px 40px; gap: 14px; overflow-x: hidden; width: 100%; }
    .topbar { padding: 12px 16px; flex-wrap: wrap; }
    .topbar-left { flex: 1; min-width: 180px; }
    .page-title { font-size: 20px; }
    .card { padding: 16px; width: 100%; overflow: visible; }
    /* .table-container ayarları zaten yukarıda tanımlandı, burada tekrara gerek yok */
    /* ─── MOBİLDE TABLOYU EKRANA TAM SIĞDIRMA ─── */
    .data-table { 
        min-width: 100% !important; /* PC'deki 500px sınırını ezer, ekrana sıfırlar */
        font-size: 11px !important; /* Yazıları mobilde küçültür */
    }
    .data-table th { 
        padding: 8px 4px !important; 
        font-size: 9px !important; 
        white-space: normal !important; /* Başlıkların alt satıra geçmesine izin verir */
        letter-spacing: 0;
    }
    .data-table td { 
        padding: 8px 4px !important; 
        word-break: break-word; /* Uzun kelimelerin tabloyu patlatmasını engeller */
    }
    .action-cell { 
        white-space: normal !important; /* Butonların yan yana sıkışmasını engeller */
    }
    .badge {
        font-size: 9px !important; /* Etiketleri mobilde inceltir */
        padding: 2px 4px !important;
    }
    .cal-header-row, .cal-body { grid-template-columns: 40px repeat(7, 1fr); }
    .cal-hour-label { display: block !important; font-size: 9px; right: 4px; }
    .cal-app-service { display: none; }
    .cal-app-time { font-size: 9px; }
    .cal-app-name { font-size: 10px; }
    .calendar-week-label { font-size: 13px; min-width: 150px; }
    
    #toast-container { bottom: 16px; right: 16px; left: 16px; }
    .toast { max-width: 100%; }
    /* ─── MÜŞTERİLER & WHATSAPP EKRANI MOBİL İKİNCİ SATIR TASARIMI ─── */
    #section-ayarlar .data-table thead tr {
        display: flex;
        width: 100%;
    }
    #section-ayarlar .data-table thead th {
        flex: 1;
        text-align: center;
    }
    #section-ayarlar .data-table thead th:first-child {
        text-align: left; /* Müşteri adı sola yaslı kalsın */
    }
    #section-ayarlar .data-table thead th:last-child {
        display: none; /* Üstteki "İŞLEM" başlığını kaldırıp ilk 4 sütuna yer açıyoruz */
    }

    #section-ayarlar .data-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        border-bottom: 2px solid rgba(0,0,0,0.06);
    }
    #section-ayarlar .data-table tbody td {
        flex: 1;
        border-bottom: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 11px !important;
    }
    #section-ayarlar .data-table tbody td:first-child {
        justify-content: flex-start;
        text-align: left;
    }
    
    /* İşlem Sütunu (Butonlar) Alt Satıra Geçer */
    #section-ayarlar .data-table tbody td:last-child {
        flex: 0 0 100%; /* %100 genişlik alıp kendini alt satıra atar */
        justify-content: center;
        padding-top: 8px !important;
        padding-bottom: 16px !important;
        gap: 8px;
        background: rgba(0,0,0,0.01); /* Butonların olduğu satıra çok hafif bir derinlik katar */
        border-radius: 0 0 12px 12px;
    }

    /* Mobilde Butonların Boyutları ve Hizalanması */
    #section-ayarlar .data-table tbody td:last-child .btn-primary {
        flex: 1;
        max-width: 130px; /* Butonların çok uzamasını engeller */
        padding: 8px 6px !important;
        font-size: 11px !important;
        white-space: normal !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .section-toolbar { flex-direction: column; align-items: stretch; }
    .calendar-toolbar { flex-direction: column; align-items: stretch; }
    .view-toggle { margin-left: 0; justify-content: center; }
    .modal-dialog { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: fixed; bottom: 0; left: 0; right: 0; margin: 0; max-height: 90vh; }
    .modal { align-items: flex-end; padding: 0; }
}

/* ─── SCROLLBARS ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }
/* ═══════════════════════════════════════════════════════════════════════════
   AYLIK TAKVİM GÖRÜNÜMÜ (GRID SİSTEMİ)
   ═══════════════════════════════════════════════════════════════════════════ */
.cal-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cal-month-header {
    padding: 14px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-right: 1px solid rgba(0,0,0,0.04);
    background: #fafafa;
}

.cal-month-header:nth-child(7n) {
    border-right: none;
}

.cal-month-cell {
    min-height: 130px;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    border-right: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.cal-month-cell:nth-child(7n) { border-right: none; }
.cal-month-cell:hover { background: #fafafa; }
.cal-month-cell-empty { background: #f9f9f9; pointer-events: none; }

.cal-month-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    align-self: flex-end; /* Sayıyı sağ üste yaslar */
    margin-bottom: 6px;
    padding: 2px 6px;
}

.cal-month-today .cal-month-date {
    background: var(--color-accent);
    color: white;
    border-radius: 12px;
}

.cal-month-apps {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cal-month-app {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--color-accent);
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
/* ═══════════════════════════════════════════════════════════════════════════
   GÜNLÜK GÖRÜNÜM (TAM EKRAN GENİŞLEME DÜZELTMESİ)
   ═══════════════════════════════════════════════════════════════════════════ */
.cal-day-view .cal-header-row {
    grid-template-columns: 56px 1fr; /* 56px saat sütunu, 1fr kalan tüm boşluk */
}

.cal-day-view .cal-body {
    grid-template-columns: 56px 1fr;
}