/* Masaüstü görünümü - ESKİ HALİ (değişmeyecek) */

/* Mobil görünüm için stiller */
@media (max-width: 768px) {
    /* Modal boyutu ve konumu */
    #quickAddModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    #quickAddModal .modal-content {
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    
    /* Daha kompakt header */
    #quickAddModal .modal-header {
        padding: 0.75rem 1rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-bottom: none;
        position: sticky;
        top: 0;
        z-index: 1055;
    }
    
    #quickAddModal .modal-title {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    /* Kapatma butonunu daha belirgin yap */
    #quickAddModal .btn-close {
        filter: invert(1);
        opacity: 0.8;
        transform: scale(1.2);
        margin-right: 0;
    }
    
    #quickAddModal .btn-close:focus {
        box-shadow: none;
    }
    
    /* Body için scroll */
    #quickAddModal .modal-body {
        padding: 1rem;
        flex: 1;
        overflow-y: auto;
        background: #f8f9fa;
    }
    
    /* Tab'ler için minimalist tasarım */
    #quickAddModal .nav-pills {
        background: white;
        border-radius: 12px;
        padding: 0.5rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    #quickAddModal .nav-pills .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 8px;
        margin: 0 2px;
        color: #6c757d;
        font-weight: 500;
    }
    
    #quickAddModal .nav-pills .nav-link.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    }
    
    /* Form kontrolleri */
    .form-control-mobile {
        font-size: 16px !important; /* iOS zoom önleme */
        padding: 0.75rem 1rem !important;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        background: white;
    }
    
    .form-control-mobile:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    }
    
    /* Label'lar */
    .form-label-mobile {
        font-size: 0.9rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.5rem;
    }
    
    /* Butonlar */
    .btn-mobile {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 10px;
        font-weight: 600;
        border: none;
    }
    
    .btn-primary-mobile {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }
    
    .btn-outline-secondary-mobile {
        background: white;
        border: 2px solid #e0e0e0;
        color: #6c757d;
    }
    
    /* Form grupları */
    #quickAddModal .mb-3 {
        margin-bottom: 1rem !important;
        background: white;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    
    /* Grid düzenlemeleri */
    #quickAddModal .row.g-2 {
        gap: 0.75rem;
    }
    
    /* Daha küçük form-text */
    .form-text-mobile {
        font-size: 0.75rem;
        color: #6c757d;
        margin-top: 0.25rem;
    }
    
    /* Footer için minimalist tasarım */
    #quickAddModal .modal-footer {
        background: white;
        border-top: 1px solid #e9ecef;
        padding: 1rem;
        position: sticky;
        bottom: 0;
        z-index: 1055;
    }
    
    /* Input grupları */
    .input-group-mobile .input-group-text {
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-right: none;
        font-size: 0.9rem;
    }
    
    .input-group-mobile .form-control {
        border-left: none;
    }
    
    /* Select'ler için */
    .form-select-mobile {
        font-size: 16px;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        border: 1px solid #e0e0e0;
    }
    
    /* Textarea için */
    textarea.form-control-mobile {
        min-height: 100px;
        resize: vertical;
    }
}

/* Çok küçük ekranlar için ek optimizasyon */
@media (max-width: 576px) {
    #quickAddModal .modal-header {
        padding: 0.75rem 1rem;
    }
    
    #quickAddModal .modal-body {
        padding: 0.75rem;
    }
    
    #quickAddModal .modal-footer {
        padding: 0.75rem;
    }
    
    .form-control-mobile {
        padding: 0.7rem 0.9rem !important;
    }
    
    .btn-mobile {
        padding: 0.7rem 1.25rem !important;
    }
    
    #quickAddModal .nav-pills .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    #quickAddModal .mb-3 {
        padding: 0.75rem;
    }
}

/* iOS için input zoom önleme ve touch iyileştirmeleri */
@media (max-width: 768px) {
    .form-control-mobile,
    .form-select-mobile,
    #taskDueDate,
    #taskPriority {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Touch hedefleri için minimum boyut */
    .btn-mobile,
    #quickAddModal .nav-pills .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Smooth scroll */
    #quickAddModal .modal-body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Backdrop iyileştirme */
    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    /* Input focus states */
    .form-control-mobile:focus,
    .form-select-mobile:focus {
        transform: translateY(-1px);
        transition: all 0.2s ease;
    }
}

/* Ultra ince ekranlar (örneğin iPhone SE) */
@media (max-width: 375px) and (max-height: 667px) {
    #quickAddModal .modal-header {
        padding: 0.6rem 0.75rem;
    }
    
    #quickAddModal .modal-body {
        padding: 0.6rem;
    }
    
    #quickAddModal .modal-footer {
        padding: 0.6rem;
    }
    
    .form-control-mobile {
        padding: 0.6rem 0.8rem !important;
    }
    
    .btn-mobile {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    #quickAddModal .nav-pills {
        padding: 0.4rem;
    }
    
    #quickAddModal .nav-pills .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
    }
    
    #quickAddModal .mb-3 {
        padding: 0.6rem;
        margin-bottom: 0.75rem !important;
    }
}

/* Yatay mod için optimizasyon */
@media (max-width: 768px) and (orientation: landscape) {
    #quickAddModal .modal-body {
        padding: 0.5rem;
    }
    
    #quickAddModal .modal-header,
    #quickAddModal .modal-footer {
        padding: 0.5rem 1rem;
    }
    
    .form-control-mobile {
        padding: 0.5rem 0.75rem !important;
    }
    
    textarea.form-control-mobile {
        min-height: 60px;
    }
}