:root {
    --pin-bg: #EAEAEA;
    --todo-card-bg: #ffffff;
    --todo-border: #e9ecef;
    --todo-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --status-pending: #6c757d;
    --status-in-progress: #0d6efd;
    --status-completed: #198754;
    --status-on-hold: #fd7e14;
}

.business-desk .pin-item .pin-lock {
    width: 16px;
    height: 24px;
    background-color: var(--pin-bg);
}

.business-desk .pin-item i {
    margin-inline-start: -5px;
    margin-top: -6px;
}

.todo-list {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    background: transparent;
    gap: 10px;
}

[dir="ltr"] .todo-list {
    margin-right: 12px;
    padding: 0 15px 0 2px;
}

[dir="rtl"] .todo-list {
    margin-left: 12px;
    padding: 0 2px 0 15px;
}

.todo-list .box-theme {
    border: 2.4px solid rgba(255, 255, 255, 0.3);
    background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(28.79px);
    -webkit-backdrop-filter: blur(28.79px); 
    background-clip: padding-box;
    border-radius: 10px;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 20px;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    max-height: 44px;
    z-index: 1;
}

.todo-item.dragging {
    opacity: 0.7;
    transform: rotate(2deg);
    box-shadow: 0 15px 50px 0 rgba(31, 38, 135, 0.6);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.4);
}

.drag-handle {
    color: #999;
    cursor: grab;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.drag-handle:active {
    cursor: grabbing;
}

.todo-item:hover .drag-handle {
    color: #666;
}

.todo-id {
    color: var(--base-dark-gray);
    font-size: 12px;
}

.todo-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.todo-assigned {
    align-items: center;
    justify-content: center;
}

.assigned-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    border: none;
    box-shadow: none;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
}

.no-assignment {
    color: transparent;
    font-size: 0.8rem;
    text-align: center;
    min-width: 20px;
}

.todo-status {
    width: 100px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 50rem;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
    display: block;
    width: 92px;
    color: white;
    text-align: center;
}

.status-circle-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.todo-actions .dropdown-item {
    padding: 8px 16px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.todo-actions .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.todo-actions .dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.todo-actions .dropdown-divider {
    margin: 4px 0;
    border-color: #e9ecef;
}

.todo-list.drag-over {
    background-color: #f0f8ff;
    border: 2px dashed #007bff;
}

.todo-item.drag-over {
    border-top: 2px solid #007bff;
    background-color: #e3f2fd;
}

.todo-item.drag-over::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007bff;
    z-index: 1;
}

.drop-indicator {
    height: 2px;
    background: #007bff;
    margin: 2px 0;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.drop-indicator.active {
    opacity: 1;
}

.status-pending {
    background: #ff8c00;
    color: white;
}

.status-in_progress {
    background: #28a745;
    color: white;
}

.status-completed {
    background: #6c757d;
    color: white;
}

.status-done {
    background: #6c757d;
    color: white;
}

.priority-badge {
    padding: 4px 8px;
    border-radius: 50rem;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
    display: block;
    width: 64px;
    color: white;
}

.priority-low {
    background: #6c757d;
}

.priority-medium {
    background: #ffc107;
}

.priority-high {
    background: #dc3545;
}

.todo-title {
    color: var(--base-dark-gray);
    font-size: 16px;
    padding-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.todo-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
    margin-bottom: 4px;
}

.todo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.todo-tags .badge {
    font-size: 0.6rem;
    padding: 2px 6px;
}

.todo-due-date {
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.todo-priority-mobile {
    margin-top: 4px;
    text-align: left;
    display: none;
}

.todo-meta-mobile {
    display: none;
    margin-top: 4px;
    text-align: left;
    flex-wrap: wrap;
    gap: 4px;
}

.todo-meta-mobile .status-badge,
.todo-meta-mobile .priority-badge,
.todo-meta-mobile .due-date-mobile {
    font-size: 0.6rem;
    padding: 2px 6px;
    margin-right: 4px;
    display: inline-block;
}

.due-date-mobile {
    color: #6c757d;
    font-size: 0.6rem;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.todo-priority-desktop {
    text-align: center;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    background: transparent;
    border-radius: 8px;
    margin: 16px;
}

.empty-state i {
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    opacity: 0.7;
    color: #6c757d;
}

#viewTodoModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#viewTodoModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

#viewTodoModal .modal-header .btn-close {
    filter: invert(1);
}

#viewTodoModal .form-control,
#viewTodoModal .form-select {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

#viewTodoModal .form-control:focus,
#viewTodoModal .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#viewTodoModal .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

#viewTodoModal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
}

#viewTodoModal .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

#viewTodoModal .btn-secondary {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
}

.add-icon {
    font-size: 1.2rem;
}

@media (max-width: 1399.98px) and (min-width: 1200px) {
    .todo-item {
        gap: 10px;
    }
}

@media (max-width: 767.98px) {
    .todo-list {
        max-height: fit-content;
    }
    .todo-item .todo-title {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .todo-item .todo-due-date {
        font-size: 0.75rem;
    }
    .todo-item .todo-name {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 474.98px) {
    .todo-due-date {
        display: none;
    }
} 

[dir="rtl"] .task-id-badge {
    margin-left: 0;
    margin-right: 8px;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.todo-card {
    animation: slideInUp 0.3s ease-out;
}

.todo-item:hover {
    background-color: #f8f9fa70;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.todo-item.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.todo-item.slide-in {
    animation: slideInUp 0.3s ease-out;
}

.todo-item.slide-out {
    animation: slideOutLeft 0.3s ease-out;
}