body { 
    font-family: Arial, sans-serif; 
    background-color: #f0f0f0; 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background-color: #2f3b52; 
    padding: 10px 20px; 
    color: white; 
}

.navbar .left { 
    font-size: 24px; 
    font-weight: bold; 
}

.navbar .right { 
    display: flex; 
    align-items: center; 
}

    .navbar .right .avatar-preview {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        overflow: hidden;
        border: 1px solid #ccc;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 5px; /* Username'den ayırmak için */
    }

    .navbar .right .avatar-preview img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        min-height: 100%;
        min-width: 100%;
    }

.kanban-column { 
    background-color: #ebecf0; 
    border-radius: 5px; 
    min-height: 500px; 
    padding: 15px; 
}
.kanban-card {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    user-select: none; /* Metin seçimini engelle */
    word-break: break-word; /* Uzun kelimeleri gerektiğinde böl */
    word-wrap: break-word; /* Uzun kelimelerin satır sonunda kaydırılmasını sağla */
    overflow-wrap: break-word; /* Modern tarayıcılar için */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.kanban-card .card-header {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 4px 4px 0 0;
    margin: 0;
    z-index: 2;
    position: relative;
    word-break: break-word; /* Uzun kelimeleri gerektiğinde böl */
    word-wrap: break-word; /* Uzun kelimelerin satır sonunda kaydırılmasını sağla */
}

.kanban-card .card-content {
    padding: 10px;
    height: auto;
    max-height: 300px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    word-break: break-word; /* Uzun kelimeleri gerektiğinde böl */
    word-wrap: break-word; /* Uzun kelimelerin satır sonunda kaydırılmasını sağla */
}

.kanban-card.collapsed .card-content {
    max-height: 0;
    padding: 0;
    opacity: 0;
    margin: 0;
}
.kanban-card .task-description {
    transition: all 0.3s ease;
    word-break: break-word; /* Uzun kelimeleri gerektiğinde böl */
    word-wrap: break-word; /* Uzun kelimelerin satır sonunda kaydırılmasını sağla */
    overflow-wrap: break-word; /* Modern tarayıcılar için */
}

.toggle-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.kanban-card.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.icon-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-group i {
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-group i:hover {
    color: #0056b3;
    transform: scale(1.1);
}

.btn-light {
    background-color: #e9ecef;
}

.kanban-card:not(.dragging):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    position: relative;
}

.kanban-card:not(.dragging):active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.drag-over { 
    border: 2px dashed #0d6efd; 
}

/* Sürükleme işlemi için stilller */
.droppable-active {
    border: 2px dashed #0dcaf0;
    background-color: rgba(13, 202, 240, 0.05);
    transition: all 0.3s ease;
}

.droppable-hover {
    border: 3px dashed #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
    transition: all 0.15s ease-in-out !important;
}

/* Sürüklenen kartın stili */
.ui-draggable-dragging {
    transform: rotate(1deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: none !important; /* Sürükleme sırasında geçişleri devre dışı bırak */
    will-change: transform, left, top; /* Tarayıcıya değişiklikleri önceden bildir */
    opacity: 0.9;
    z-index: 9999 !important;
    cursor: grabbing !important;
    backface-visibility: hidden; /* Performansı arttır */
    -webkit-backface-visibility: hidden; /* Safari için */
    transform-style: preserve-3d; /* Standart sürüm */
    -webkit-transform-style: preserve-3d; /* Safari için */
}

.kanban-card .task-title {
    font-weight: 500;
    color: #333;
}

/* Context menu stilleri */
#context-menu {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 5px 0;
    display: none;
    z-index: 9999;
    width: 180px;
}

#context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#context-menu li {
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#context-menu li:hover {
    background-color: #f0f0f0;
}

#context-menu li i {
    width: 16px;
    text-align: center;
}

/* Koyu tema için context menü stilleri */
[data-theme="dark"] #context-menu {
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] #context-menu li {
    color: #fff;
}

[data-theme="dark"] #context-menu li:hover {
    background-color: #404040;
}

/* Edit icon styles */
.edit-icon {
    display: inline-block;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s ease, transform 0.2s ease; /* Yumuşak geçiş efekti */
}

.edit-icon:hover {
    color: #007bff; /* Mavi ton - daha belirgin */
    transform: scale(1.15); /* Hafif büyütme efekti */
}

/* Balon stil tanımlamaları */
.bubble {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 100px; /* Maksimum genişlik */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Uzun metinlerin kırpılması */
}

.bubble:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.creator-bubble {
    background-color: #f0ad4e; /* Sarı */
    color: #000;
    border-radius: 20px;
}

.bubble-accepted {
    background-color: #5cb85c; /* Yeşil */
    border-radius: 20px;
}

.bubble-pending {
    background-color: #f0ad4e; /* Sarı */
    color: #000;
    border-radius: 20px;
}

.bubble-rejected {
    background-color: #d9534f; /* Kırmızı */
    border-radius: 20px;
}

/* Tooltip içindeki avatar (profil fotığrafı) */
.user-tooltip-body .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

/* Mobil cihazlar için medya sorguları */
@media (max-width: 768px) {
    /* Mobil bubble düzenlemeleri */
    .bubble {
        padding: 4px 6px;
        font-size: 11px;
        max-width: 80px; /* Mobilde daha küçük genişlik */
    }
    
    /* Mobil tooltip-avatar */
    .user-tooltip-body .avatar {
        width: 40px;
        height: 40px;
        margin-right: 5px;
    }
    
    /* Mobil context menü */
    #context-menu {
        width: 150px;
    }
    
    #context-menu li {
        padding: 10px 12px;
    }
}

/* Bildirim paneli için CSS */
#notificationPanel {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

#notificationPanel::-webkit-scrollbar {
    width: 6px;
}

#notificationPanel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#notificationPanel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#notificationPanel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    animation: slideIn 0.3s ease-out;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-body {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.notification-item.fadeout {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Karanlık tema için bildirim paneli stilleri */
[data-theme="dark"] #notificationPanel {
    background: #2A2A3C;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .notification-item {
    border-bottom-color: #3A3A50;
}

[data-theme="dark"] .notification-header {
    color: #fff;
}

[data-theme="dark"] .notification-body {
    color: #ddd;
}

[data-theme="dark"] #notificationPanel::-webkit-scrollbar-track {
    background: #3A3A50;
}

[data-theme="dark"] #notificationPanel::-webkit-scrollbar-thumb {
    background: #555;
}

[data-theme="dark"] #notificationPanel::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Görevi vurgulama stil (bildirime tıklandığında) */
.kanban-card.highlight {
    animation: highlight-pulse 1.5s ease-in-out;
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.8);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Dropdown Menü için stiller */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 120px;
    right: 20px;
    top: 50px;
    z-index: 1000;
}

.dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.task-time {
    opacity: 0.6;
    font-size: 0.8em;
    text-align: right;
    display: block;
    margin-top: 5px;
}

.task-countdown {
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-countdown.expired {
    background-color: #dc3545;
    color: white;
}

.task-countdown.warning {
    background-color: #ffc107;
    color: #000;
}

.task-countdown i {
    font-size: 1em;
}

.countdown-text {
    font-weight: 500;
}

/* Autocomplete Dropdown Stilleri */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999 !important;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ui-autocomplete .ui-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.ui-autocomplete .ui-menu-item:hover {
    background-color: #f8f9fa;
}

.ui-autocomplete .ui-menu-item div {
    color: #333;
    border: none;
}

.ui-autocomplete .ui-state-active {
    background: #e9ecef;
    border: none;
    margin: 0;
}

/* Arşiv Butonu */
#showArchiveButton, #showRecurringButton {
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    position: fixed;
    bottom: 20px;
}

#showArchiveButton {
    right: 20px;
}

#showRecurringButton {
    right: 80px;
}

#showArchiveButton:hover, #showRecurringButton:hover {
    transform: scale(1.1);
}

/* Arşivlenmiş Görevler Listesi */
.archived-tasks-container {
    max-height: 70vh;
    overflow-y: auto;
}

.archived-task-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.archived-task-card .task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.archived-task-card .task-title {
    font-weight: bold;
    word-break: break-word;
    flex: 1;
}

.archived-task-card .task-description {
    color: #666;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.archived-task-card .task-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
    color: #777;
}

.archived-task-card .task-footer span {
    word-break: break-word;
}

.unarchive-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.9em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.unarchive-btn:hover {
    background: #e9ecef;
}

@media (max-width: 768px) {
    .archived-task-card {
        padding: 10px;
    }

    .archived-task-card .task-header {
        flex-direction: column;
    }

    .archived-task-card .task-footer {
        flex-direction: column;
        gap: 5px;
    }

    .unarchive-btn {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    #showArchiveButton, #showRecurringButton {
        width: 45px;
        height: 45px;
    }

    #showRecurringButton {
        right: 75px;
    }
}

/* Tekrarlanan Görevler Modal Stilleri */
.recurring-task-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.recurring-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.recurring-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.recurring-option:hover, .recurring-option.active {
    background: #2f3b52;
    color: white;
    border-color: #2f3b52;
}

.reminder-options {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.reminder-options label {
    display: block;
    margin-bottom: 10px;
}

.recurring-task-list {
    margin-top: 20px;
}

.recurring-task-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recurring-task-info {
    flex: 1;
}

.recurring-task-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.recurring-task-schedule {
    font-size: 0.9em;
    color: #666;
}

.recurring-task-actions {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .recurring-options {
        flex-direction: column;
    }

    .recurring-task-item {
        flex-direction: column;
        gap: 10px;
    }

    .recurring-task-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Kullanıcı tooltip stilleri */
.user-tooltip {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 0;
    font-size: 14px;
    max-width: 300px;
    min-width: 200px;
    z-index: 9999;
}

.user-tooltip-header {
    background-color: #f8f9fa;
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-tooltip-header .btn-close {
    font-size: 10px;
    padding: 2px;
}

.user-tooltip-body {
    padding: 10px;
}

.user-tooltip-body p {
    margin-bottom: 5px;
}

.kanban-card .card-header span {
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    word-break: break-word; /* Uzun kelimeleri gerektiğinde böl */
    word-wrap: break-word; /* Uzun kelimelerin satır sonunda kaydırılmasını sağla */
    overflow-wrap: break-word; /* Modern tarayıcılar için */
    white-space: normal; /* Normal metin sarma */
    max-width: 85%; /* Başlık span'inin maksimum genişliği */
    display: inline-block; /* Blok element gibi davranmasını sağlar */
}

.kanban-card .card-header span:hover {
    color: #007bff;
}

/* Sürüklenme sırasında hedef sütunu vurgula */
.droppable-hover {
    border: 3px dashed #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
    transition: all 0.15s ease-in-out !important;
}

/* Sayfa akışını bozmamak için */
.kanban-card.dragging {
    opacity: 0.4; /* Orijinal kartı soluk göster */
}