/* ============================================
   TASKS MODULE - CSS STYLES
   ============================================ */

/* Genel Stil */
.task-card {
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Öncelik Renkleri */
.priority-low {
    border-left-color: #6c757d;
}

.priority-normal {
    border-left-color: #0dcaf0;
}

.priority-high {
    border-left-color: #ffc107;
}

.priority-urgent {
    border-left-color: #dc3545;
}

/* Durum Badge'leri */
.status-pending {
    background-color: #6c757d;
}

.status-in-progress {
    background-color: #0d6efd;
}

.status-completed {
    background-color: #198754;
}

.status-cancelled {
    background-color: #212529;
}

/* İstatistik Kartları */
.stats-card-box.style-five {
    border-radius: 10px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card-box.style-five:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Timeline Stili */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 30px;
    bottom: -10px;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item .flex-shrink-0 {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid #0d6efd;
    position: relative;
    z-index: 1;
}

.timeline-item .flex-shrink-0 i {
    font-size: 14px;
}

/* Yorum Stili */
#commentsList .border-bottom:last-child {
    border-bottom: 0 !important;
}

/* Dosya Listesi */
#attachmentsList .list-group-item {
    border-left: 3px solid #0d6efd;
}

#attachmentsList .list-group-item:hover {
    background-color: #f8f9fa;
}

/* Responsiveness */
@media (max-width: 768px) {
    .stats-card-box.style-five {
        margin-bottom: 15px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
}

/* DataTables Özelleştirme */
#tasksTable tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#tasksTable tbody tr:hover {
    background-color: #f8f9fa;
}

/* Filtre Bölümü */
.filter-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Modal Genişliği */
.modal-lg.task-modal {
    max-width: 900px;
}

/* Dosya Yükleme Alanı */
#uploadForm input[type="file"] {
    cursor: pointer;
}

#uploadForm input[type="file"]:hover {
    border-color: #0d6efd;
}

/* Görevi Tamamlama Butonu */
#btnComplete {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    
    70% {
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }
    
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* Gecikmiş Görev Vurgusu */
.overdue-task {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
}

.overdue-task:hover {
    background-color: #ffe5e5;
}

/* Loading Spinner */
.task-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.task-loading::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge Stilleri */
.badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Card Shadow */
.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Scrollbar Özelleştirme */
#commentsList::-webkit-scrollbar,
#attachmentsList::-webkit-scrollbar,
#historyList::-webkit-scrollbar {
    width: 6px;
}

#commentsList::-webkit-scrollbar-track,
#attachmentsList::-webkit-scrollbar-track,
#historyList::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#commentsList::-webkit-scrollbar-thumb,
#attachmentsList::-webkit-scrollbar-thumb,
#historyList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#commentsList::-webkit-scrollbar-thumb:hover,
#attachmentsList::-webkit-scrollbar-thumb:hover,
#historyList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Success Animation */
@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.success-bounce {
    animation: successBounce 1s;
}

/* Modern Tab Animations */
.tab-pane {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.btn-icon-only {
    position: relative;
    overflow: hidden;
}

.btn-icon-only::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-icon-only:hover::before {
    width: 100px;
    height: 100px;
}

/* Pulse Animation for Urgent Priority */
@keyframes urgentPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.priority-urgent {
    animation: urgentPulse 2s infinite;
}

/* Glass Morphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Shimmer Loading Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
}

/* Floating Labels Effect */
.floating-label {
    position: relative;
}

.floating-label label {
    position: absolute;
    top: 12px;
    left: 16px;
    color: #a0aec0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 11px;
    background: white;
    padding: 0 4px;
    color: #c82c6a;
}

/* Progress Bar */
.task-progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.task-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c82c6a, #471f72);
    transition: width 0.6s ease;
}

