body {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* Grid Setup */
.schedule-grid {
    display: grid;
}

@media (min-width: 768px) {
    .schedule-grid {
    }
}

/* Event Card Styles for Mobile */
@media (max-width: 768px) {
    .event-card .event-title {
        font-size: 0.875rem; 
        line-height: 1.25rem;
        white-space: normal; 
        overflow: visible;
        text-overflow: clip;
        display: block; 
    }
    .event-card .event-time {
        font-size: 0.75rem; 
        margin-top: 0.25rem;
    }
}

.event-card { transition: transform 0.1s, box-shadow 0.1s; }
.event-card:active { transform: scale(0.97); }

.modal-overlay {
    opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 50;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }

@media (max-width: 768px) {
    .modal-content {
        transform: translateY(100%);
        border-bottom-left-radius: 0; border-bottom-right-radius: 0;
        max-height: 90vh;
    }
    .modal-overlay.active .modal-content { transform: translateY(0); }
}

@media (min-width: 768px) {
    .modal-content { transform: scale(0.95); opacity: 0; }
    .modal-overlay.active .modal-content { transform: scale(1); opacity: 1; }
}
/* scheduleplanner.css dosyasının en altına ekle */

/* scheduleplanner.css dosyasının en altına ekle/değiştir */

.event-card {
    position: relative; 
}

/* Genel Tutamaç Stili */
.resize-handle {
    position: absolute;
    left: 0;
    right: 0;
    height: 10px; /* Tutma alanı */
    cursor: ns-resize;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Üst Tutamaç */
.resize-handle.top {
    top: 0;
    align-items: flex-start;
}

/* Alt Tutamaç */
.resize-handle.bottom {
    bottom: 0;
    align-items: flex-end;
}

/* Görsel Çizgi */
.resize-handle::after {
    content: '';
    width: 20px;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    transition: background-color 0.2s;
}

.dark .resize-handle::after {
    background-color: rgba(255, 255, 255, 0.3);
}

.resize-handle:hover::after {
    background-color: rgba(0, 0, 0, 0.5);
    height: 4px; /* Hoverda kalınlaşsın */
}

.dark .resize-handle:hover::after {
    background-color: rgba(255, 255, 255, 0.7);
}

body.resizing {
    cursor: ns-resize;
    user-select: none;
}

/* scheduleplanner.css en altına ekle */

.drag-tooltip {
    position: fixed;
    background-color: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    pointer-events: none;
    display: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    backdrop-filter: blur(2px);
    
    /* İŞTE BURAYI DEĞİŞTİRİYORUZ: */
    /* X ekseninde 20px sağa, Y ekseninde -45px yukarı */
    transform: translate(20px, -45px); 
}

/* scheduleplanner.css - EN ALTA EKLE */

.color-input-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.dark .color-input-wrapper {
    border-color: #4b5563;
}

input[type="color"].custom-color-input {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 150%;
    height: 150%;
    padding: 0;
    margin: 0;
    border: none;
    cursor: pointer;
    background: transparent;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.dark .category-item {
    background-color: #1e293b;
    border-color: #334155;
}

/* MOBILE EDIT MODE LOGIC */
@media (max-width: 768px) {
    /* Varsayılan olarak tutamaçları gizle */
    .resize-handle {
        display: none !important;
    }
    
    /* Kilit açıldığında (body'de .mobile-edit-active varsa) göster */
    body.mobile-edit-active .resize-handle {
        display: flex !important;
    }

    /* Kilit butonu aktifse rengini değiştir */
    body.mobile-edit-active #mobileEditToggle {
        background-color: #ef4444; /* Kırmızımsı renk (Düzenleme modu açık uyarısı) */
        border-color: #ef4444;
    }
}

/* DAY SELECTION BUTTONS */
.day-btn {
    flex: 1;
    min-width: 40px;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    color: #6b7280;
}
.dark .day-btn {
    background-color: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

/* SEÇİLİ DURUM (ACTIVE) */
.day-btn.selected {
    background-color: #3b82f6; /* Mavi */
    color: white;
    border-color: #2563eb;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}
.dark .day-btn.selected {
    background-color: #2563eb;
    border-color: #1d4ed8;
}

/* DAILY BUTTON */
.day-btn-daily {
    flex: 2; /* Biraz daha geniş */
    background-color: #f3f4f6;
    color: #4b5563;
}
.day-btn-daily.selected {
    background-color: #8b5cf6; /* Mor */
    border-color: #7c3aed;
    color: white;
}