/* =====================================================
   Datakale Takip - Custom Stiller
   ===================================================== */

html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Sticky bar yatay scroll için ince scrollbar */
#todayTasksScroll::-webkit-scrollbar { height: 6px; }
#todayTasksScroll::-webkit-scrollbar-track { background: transparent; }
#todayTasksScroll::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
#todayTasksScroll::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* =====================================================
   FullCalendar - Modern temiz görünüm
   ===================================================== */

.fc {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
}
.fc .fc-toolbar-title {
    font-size: 1.125rem !important;
    font-weight: 700;
    color: #0f172a;
}
.fc-toolbar.fc-header-toolbar {
    margin-bottom: 1rem !important;
}
.fc .fc-button {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    text-transform: capitalize !important;
}
.fc .fc-button:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #fff !important;
}
.fc .fc-button-primary:disabled {
    opacity: 0.4;
}
.fc-daygrid-day-number,
.fc-col-header-cell-cushion {
    color: #475569;
    font-weight: 500;
    text-decoration: none !important;
    padding: 6px 8px !important;
}
.fc-day-today {
    background: #eff6ff !important;
}
.fc-day-today .fc-daygrid-day-number {
    color: #2563eb;
    font-weight: 700;
}
.fc-day-other {
    background: #fafafa;
}
.fc-day-other .fc-daygrid-day-number {
    color: #cbd5e1;
}

/* ===== Gün hücresi hover feedback (tıklanabilir hissi) ===== */
.fc-daygrid-day {
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease;
    position: relative;
}
.fc-daygrid-day:hover {
    background-color: rgba(59, 130, 246, 0.06) !important; /* hafif mavi */
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}
.fc-day-today:hover {
    background-color: rgba(59, 130, 246, 0.12) !important;
}

/* "+" ikonu hover'da sağ üstte */
.fc-daygrid-day-frame {
    position: relative;
}
.fc-daygrid-day-frame::after {
    content: "+";
    position: absolute;
    top: 4px;
    right: 6px;
    width: 18px;
    height: 18px;
    line-height: 16px;
    text-align: center;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 150ms ease, transform 150ms ease;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    z-index: 2;
}
.fc-daygrid-day:hover .fc-daygrid-day-frame::after {
    opacity: 1;
    transform: scale(1);
}
/* Tarih numarasıyla "+" çakışmasın diye sayıyı sola al */
.fc-daygrid-day:hover .fc-daygrid-day-top {
    justify-content: flex-start;
}

/* TimeGrid (haftalık/günlük) hover feedback */
.fc-timegrid-slot {
    transition: background-color 100ms ease;
}
.fc-timegrid-col.fc-day:hover .fc-timegrid-col-bg {
    background-color: rgba(59, 130, 246, 0.04);
}

/* Olay (görev) kartı */
.fc-event {
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    border: none !important;
    border-left: 3px solid rgba(0,0,0,0.15) !important;
    cursor: pointer;
    overflow: hidden;
}
.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.fc-daygrid-event-dot { display: none; }
.fc-event-time {
    font-weight: 600;
    opacity: 0.9;
}

/* Tamamlanan görevler çizgili */
.task-status-done .fc-event-title,
.task-status-cancelled .fc-event-title,
.task-status-skipped .fc-event-title {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Atlanmış instance daha soluk */
.task-status-skipped {
    opacity: 0.5 !important;
}

/* Tekrarlı görev sanal instance: hafif kesik bordür */
.task-virtual {
    border-style: dashed !important;
    border-left-width: 3px !important;
}

/* Yüksek öncelikli olanlar hafifçe parlat */
.task-priority-4 {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* Haftalık görünümde all-day satırı */
.fc-timegrid-axis-cushion,
.fc-timegrid-slot-label-cushion {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

/* "+N daha" linki */
.fc-daygrid-more-link {
    background: #e0e7ff !important;
    color: #4338ca !important;
    border-radius: 4px !important;
    padding: 1px 6px !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    margin-top: 2px !important;
}

/* =====================================================
   Sidebar
   ===================================================== */

#sidebar {
    transition: width 200ms ease, transform 200ms ease;
}

/* Collapsed durumda menü öğelerinin layout düzeltmesi */
#sidebar[data-state="collapsed"] nav a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
#sidebar[data-state="collapsed"] nav a > .sidebar-label {
    display: none !important;
}

/* Sidebar tooltip (collapsed durumda hover) */
.sidebar-tooltip {
    transition: opacity 150ms ease;
}

/* =====================================================
   Sticky Today Bar
   ===================================================== */

.today-task-card {
    transition: all 150ms ease;
}
.today-task-card:hover {
    transform: translateY(-1px);
}
.today-task-check:hover [data-lucide="check"] {
    opacity: 0.5;
    display: block !important;
}

/* =====================================================
   Modal
   ===================================================== */

#taskModal {
    animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#taskModal > div > div {
    animation: slideUp 0.2s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal içindeki form alanları */
#taskModal input[type="checkbox"]:checked + div {
    color: #fff;
}

/* =====================================================
   Flash mesajları
   ===================================================== */

.flash-message {
    animation: slideInDown 0.3s ease-out;
}
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Diğer
   ===================================================== */

input:focus, textarea:focus, select:focus {
    outline: none;
}

.disabled, [disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Lucide ikonlar - tek renk garanti */
[data-lucide] {
    flex-shrink: 0;
}

@media print {
    .no-print, aside, header, footer, #todayBar { display: none !important; }
}
