.profile-avatar-preview {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: block;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--dek-body-bg);
    color: var(--dek-body-color);
}

body[data-bs-theme="light"] {
    --dek-body-bg: #f5f6fa;
    --dek-body-color: #212529;
    --dek-card-bg: #ffffff;
    --dek-card-header-bg: #ffffff;
    --dek-card-border: rgba(0, 0, 0, 0.125);
    --dek-table-header: #f1f3f5;
    --dek-table-row-hover: rgba(13, 110, 253, 0.08);
}

body[data-bs-theme="dark"] {
    --dek-body-bg: #121418;
    --dek-body-color: #f8f9fa;
    --dek-card-bg: #1c1f26;
    --dek-card-header-bg: #252a33;
    --dek-card-border: #2c313c;
    --dek-table-header: #252a33;
    --dek-table-row-hover: rgba(13, 110, 253, 0.25);
}

.navbar-brand {
    font-weight: 600;
}

.card.shadow-sm,
.card.shadow-sm .card-body {
    border-radius: 0.75rem;
    background-color: var(--dek-card-bg);
    color: var(--dek-body-color);
    border-color: var(--dek-card-border);
}

.card-header {
    background-color: var(--dek-card-header-bg) !important;
    border-bottom-color: var(--dek-card-border) !important;
    color: var(--dek-body-color);
}

.table thead th {
    white-space: nowrap;
    background-color: var(--dek-table-header);
    color: var(--dek-body-color);
}

.table-hover tbody tr:hover {
    background-color: var(--dek-table-row-hover);
}

textarea {
    resize: vertical;
}

.alert ul {
    margin-bottom: 0;
}

.accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.08);
}

body[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.2);
}

body[data-bs-theme="dark"] .accordion-item,
body[data-bs-theme="dark"] .accordion-body,
body[data-bs-theme="dark"] .list-group-item {
    background-color: var(--dek-card-bg);
    color: var(--dek-body-color);
    border-color: var(--dek-card-border);
}

.timeline {
    position: relative;
    padding-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(13, 110, 253, 0.35);
}

.timeline > div {
    position: relative;
    padding-left: 1.5rem;
}

.timeline > div::before {
    content: '';
    position: absolute;
    left: -0.05rem;
    top: 0.35rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #0d6efd;
}

.ticket-row-attention {
    background-color: rgba(13, 110, 253, 0.08);
}

body[data-bs-theme="dark"] .ticket-row-attention {
    background-color: rgba(13, 110, 253, 0.18);
}

.attention-dot {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: #dc3545;
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.3);
}

.comment-item .comment-actions {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.comment-item:hover .comment-actions {
    opacity: 1;
}

/* Adicionado para quebrar links longos nos campos personalizados de tarefas */
#task-custom-fields-list a {
    word-break: break-all;
}

/* Interactive Tag Input */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    cursor: text;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.5em;
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
    font-size: 0.875em;
    font-weight: 500;
    line-height: 1;
    color: #000;
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

.tag-remove-btn {
    margin-left: 0.5em;
    padding: 0;
    background: transparent;
    border: none;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
}

.tag-remove-btn:hover {
    opacity: 1;
}

.tag-input-field {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0.25rem 0;
    margin-bottom: 0.375rem;
    background-color: transparent;
    color: var(--dek-body-color);
}

.tag-input-field:focus {
    box-shadow: none;
}

.crm-inline-form {
    background-color: rgba(13, 110, 253, 0.05);
    border: 1px dashed var(--dek-card-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

body[data-bs-theme="dark"] .crm-inline-form {
    background-color: rgba(13, 110, 253, 0.12);
}

.crm-lead-editing {
    border-color: rgba(13, 110, 253, 0.65) !important;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

/* Responsive table styles for user management */
.client-list-cell {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-buttons {
    white-space: nowrap;
    width: 1%;
}

.clipboard-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.clipboard-preview img {
    width: 100px !important;
    max-width: 100px !important;
    height: auto !important;
    max-height: 100px !important;
    border-radius: 0.5rem;
    border: 1px solid var(--dek-card-border);
    object-fit: cover;
    display: block;
}

.comment-attachments {
    margin-top: 0.75rem;
}

.comment-attachment {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-attachment img {
    width: 100px !important;
    max-width: 100px !important;
    height: auto !important;
    max-height: 100px !important;
    border-radius: 0.5rem;
    border: 1px solid var(--dek-card-border);
    object-fit: cover;
    display: block;
}

.comment-attachment a[data-full-image-url] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.task-comment {
    background-color: var(--dek-card-bg);
}

.task-comment-header {
    gap: 0.75rem;
}

.task-comment-actions .btn {
    padding-inline: 0.5rem;
    padding-block: 0.25rem;
}

.task-comment-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.task-comment-edit-controls {
    display: flex;
    gap: 0.5rem;
}

.task-list-table tbody tr.table-group td {
    background-color: var(--dek-card-header-bg);
    color: var(--dek-body-color);
    font-weight: 600;
    border-top: 2px solid var(--dek-card-border);
}

.task-list-table tbody tr td {
    vertical-align: middle;
}

.task-list-table .task-title-btn {
    color: var(--dek-body-color);
    font-weight: 600;
    text-decoration: none;
}

.task-list-table .task-title-btn:hover {
    text-decoration: underline;
    color: #0d6efd;
}

.task-stage-config-item .task-stage-handle {
    font-size: 1.1rem;
    user-select: none;
}

.attachment-preview-modal .modal-dialog {
    max-width: min(96vw, 1100px);
}

.attachment-preview-modal .modal-content {
    background-color: #000;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

.attachment-preview-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    max-height: 80vh;
    padding: 2rem;
}

.attachment-preview-wrapper img {
    display: block;
    width: 100% !important;
    height: auto;
    max-height: 75vh;
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
    margin: auto;
}

.attachment-preview-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    border-radius: 999px;
    padding-inline: 0.75rem;
    padding-block: 0.35rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.attachment-preview-close span {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
}

.task-stage {
    background: rgba(28, 30, 38, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.85rem;
    padding: 0.4rem 0.35rem 0.35rem;
    min-width: 260px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.task-stage .card-header {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    color: #e2e8f0;
}

.task-stage .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
    overflow-y: auto;
    flex-grow: 1;
}

.task-stage .card-body::-webkit-scrollbar {
    width: 6px;
}

.task-stage .card-body::-webkit-scrollbar-track {
    background: transparent;
}

.task-stage .card-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.task-card {
    background: rgba(30, 32, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.65rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
    padding: 0.55rem 0.8rem;
    cursor: grab;
    margin: 0 auto 0 0;
    width: clamp(250px, 22vw, 280px);
}

.task-card-running {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.14));
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
}

.task-card-running .task-card-title {
    color: #f8fafc;
}

body[data-bs-theme="light"] .task-card-running {
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.9), rgba(147, 197, 253, 0.5));
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.25);
}

body[data-bs-theme="light"] .task-card-running .task-card-title {
    color: #1e293b;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(90, 120, 255, 0.32);
}

.task-card:active {
    cursor: grabbing;
    transform: scale(0.995);
}

.task-card .btn-link {
    color: #f2f5ff;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    line-height: 1.1;
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    text-decoration: none;
}

.task-card .btn-link:hover,
.task-card .btn-link:focus {
    color: #fff;
    text-decoration: none;
}


.task-card .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.8rem;
    line-height: 1.15;
}


.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem;
}

.task-card-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.task-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-icon {
    border: none;
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    line-height: 1;
    padding: 0;
}

.btn-icon:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.34);
    color: #fff;
}

.btn-icon:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-icon-only {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.add-subtask-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.add-subtask-form .btn-icon-only {
    margin-top: 3px;
}

.subtask-item {
    background: rgba(148, 163, 184, 0.12);
    border-radius: 0.55rem;
    padding: 0.45rem 0.6rem;
    transition: background 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.subtask-item + .subtask-item {
    margin-top: 0.35rem;
}

.subtask-item:hover {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.22);
}

.subtask-item .subtask-title {
    font-size: 0.85rem;
}

.subtask-item-completed {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
}

.subtask-item-completed .subtask-title {
    color: rgba(148, 163, 184, 0.8);
}

.subtask-actions .btn-icon {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    background: rgba(15, 23, 42, 0.25);
    color: #e2e8f0;
}

.subtask-actions .btn-icon:hover {
    background: rgba(79, 70, 229, 0.55);
    color: #f8fafc;
}

.subtask-actions .subtask-delete-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.subtask-actions .subtask-delete-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #fee2e2;
}

body[data-bs-theme="light"] .subtask-item {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.2);
}

body[data-bs-theme="light"] .subtask-item:hover {
    background: rgba(148, 163, 184, 0.2);
}

body[data-bs-theme="light"] .subtask-item-completed {
    background: rgba(34, 197, 94, 0.18);
}

body[data-bs-theme="light"] .subtask-actions .btn-icon {
    background: rgba(30, 41, 59, 0.1);
    color: #1f2937;
}

body[data-bs-theme="light"] .subtask-actions .btn-icon:hover {
    background: rgba(59, 130, 246, 0.35);
    color: #0f172a;
}

body[data-bs-theme="light"] .subtask-actions .subtask-delete-btn {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

body[data-bs-theme="light"] .subtask-actions .subtask-delete-btn:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #7f1d1d;
}

.client-links-grid {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.client-link-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.client-link-item:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
    background: rgba(30, 41, 59, 0.7);
    text-decoration: none;
}

.client-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5f5;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.client-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-link-icon::after {
    content: attr(data-initial);
    display: none;
}

.client-link-icon--fallback::after {
    display: block;
}

.client-link-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

.client-link-label {
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-link-url {
    font-weight: 400;
    color: rgba(226, 232, 240, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-link-open {
    margin-left: auto;
    color: rgba(148, 163, 184, 0.75);
    font-size: 0.75rem;
}

body[data-bs-theme="light"] .client-link-item {
    background: rgba(248, 250, 252, 0.85);
    border-color: rgba(148, 163, 184, 0.35);
    color: #1f2937;
}

body[data-bs-theme="light"] .client-link-item:hover {
    background: rgba(226, 232, 240, 0.9);
    border-color: rgba(99, 102, 241, 0.45);
}

body[data-bs-theme="light"] .client-link-label {
    color: #0f172a;
}

body[data-bs-theme="light"] .client-link-url {
    color: rgba(30, 41, 59, 0.7);
}

.client-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.35rem;
}

.client-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.5rem;
    transition: background 0.12s ease;
}

.client-checkbox-item:hover {
    background: rgba(148, 163, 184, 0.14);
}

.client-checkbox-item .form-check-input {
    margin-top: 0;
    margin-left: 0;
    float: none;
    position: static;
}

.client-checkbox-item .form-check-label {
    margin-left: 0;
    flex: 1;
}

body[data-bs-theme="light"] .client-checkbox-item:hover {
    background: rgba(203, 213, 225, 0.4);
}

.task-card-priority {
    font-size: 0.62rem;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.task-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.task-card-meta,
.task-card-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.task-card-meta .task-meta-chip {
    font-size: 0.62rem;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
}

.task-card-meta .badge-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.task-card-meta .badge-muted {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

.task-card-tagline .task-tag-chip {
    font-size: 0.6rem;
    line-height: 1.1;
    padding: 0.08rem 0.32rem;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.85);
}

.task-card-footer {
    margin-top: 0.2rem;
    font-size: 0.7rem;
    gap: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.task-card-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-weight: 600;
    font-size: 0.68rem;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.4);
}

.task-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.task-card-assignees {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-card-avatar-group {
    display: flex;
    align-items: center;
}

.task-card-avatar-group .task-card-avatar-multi {
    margin-left: -8px;
    border: 2px solid rgba(15, 23, 42, 0.9);
}

.task-card-avatar-group .task-card-avatar-multi:first-child {
    margin-left: 0;
}

.task-card-avatar-extra {
    margin-left: -8px;
    background: rgba(148, 163, 184, 0.45);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.68rem;
    border: 2px solid rgba(15, 23, 42, 0.9);
}

.task-card-avatar-empty {
    background: rgba(148, 163, 184, 0.25);
    color: #f8fafc;
}

body[data-bs-theme="light"] .task-card-avatar-group .task-card-avatar-multi,
body[data-bs-theme="light"] .task-card-avatar-extra {
    border-color: #fff;
}

.tasks-container {
    padding-bottom: 2.5rem;
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
}

#task-board {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    flex-grow: 1;
    min-height: 0;
}

#task-board::-webkit-scrollbar {
    display: none;
}

.task-board-scrollbar-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 16px;
    background: rgba(17, 19, 24, 0.95);
    z-index: 20;
}

.task-board-scrollbar {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: stable both-edges;
}

.task-board-scrollbar::-webkit-scrollbar {
    height: 10px;
}

.task-board-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.task-board-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(101, 116, 205, 0.65);
    border-radius: 999px;
    border: 2px solid rgba(17, 19, 24, 0.9);
}

.task-board-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(101, 116, 205, 0.9);
}

.task-board-scrollbar-inner {
    height: 1px;
}

.demand-board .demand-column {
    background: rgba(26, 28, 34, 0.92);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    min-height: 130px;
}

.demand-progress .progress-bar {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Task Search Input Styles */
.task-search-wrapper {
    position: relative;
}

#task-search-input {
    padding-left: 2.25rem; /* Make space for the icon */
    transition: width 0.3s ease-in-out;
    width: 220px;
    border-radius: 999px; /* Pill shape */
}

#task-search-input:focus {
    width: 280px;
}

.task-search-wrapper::before {
    content: "";
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    opacity: 0.6;
}

.task-assignees-picker {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-assignees-selected {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.assignee-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    border: 1px solid rgba(15, 23, 42, 0.25);
    padding: 0;
    font-weight: 600;
    font-size: 0.75rem;
    color: #0f172a;
    background: rgba(148, 163, 184, 0.45);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.assignee-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

body[data-bs-theme="light"] .assignee-chip {
    color: #0f172a;
}

.task-assignees-dropdown {
    min-width: 260px;
    max-height: 280px;
    overflow-y: auto;
}

.task-assignee-option {
    margin-bottom: 0.25rem;
}

.task-assignee-option:last-child {
    margin-bottom: 0;
}

.task-assignee-option-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    color: #0f172a;
    background: rgba(148, 163, 184, 0.4);
}

.task-assignee-option-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-assignee-option.active {
    background-color: rgba(99, 102, 241, 0.15);
}

.login-card {
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.15);
    background-color: var(--dek-card-bg);
    box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.18);
}

.login-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card h1,
.login-card label,
.login-card button {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

.login-brand-image {
    max-width: 320px;
    width: 50%;
    height: auto;
}

body[data-bs-theme="light"] .login-card {
    box-shadow: 0 1.5rem 3rem rgba(13, 110, 253, 0.1);
}

body[data-bs-theme="dark"] .login-card {
    background-color: #1a1d24;
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.4);
}

.notification-center .notification-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.notification-center .notification-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.35);
}

.notification-center .notification-toggle:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
}

.notification-center .notification-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
}

body[data-bs-theme="light"] .notification-center .notification-toggle {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.08);
}

body[data-bs-theme="light"] .notification-center .notification-toggle:hover:not(:disabled) {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.notification-center .notification-bell {
    width: 16px;
    height: 16px;
}

.notification-center .notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #facc15;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.notification-center .notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
}

.notifications-dropdown-menu {
    width: min(360px, 90vw);
    max-width: 360px;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 0.5rem;
    backdrop-filter: blur(6px);
}

body[data-bs-theme="dark"] .notifications-dropdown-menu {
    background-color: rgba(30, 41, 59, 0.95);
    border-color: rgba(148, 163, 184, 0.2);
}

.notifications-dropdown-menu .dropdown-header {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem 0.5rem;
}

.notifications-dropdown-menu [data-notifications-list] {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 0.25rem;
}

.notification-item {
    display: flex;
    width: 100%;
    border: 0;
    background: none;
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.notification-item:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(1px);
}

.notification-item-unread {
    background: rgba(99, 102, 241, 0.12);
    border-left: 3px solid rgba(99, 102, 241, 0.6);
}

.notification-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(99, 102, 241, 0.2);
    color: #4338ca;
}

body[data-bs-theme="dark"] .notification-item-icon {
    background: rgba(99, 102, 241, 0.25);
    color: rgba(224, 231, 255, 0.95);
}

.notification-item-body {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: inherit;
}

.notification-item-text {
    font-size: 0.8rem;
    color: rgba(71, 85, 105, 0.9);
    margin: 0;
    line-height: 1.3;
}

body[data-bs-theme="dark"] .notification-item-text {
    color: rgba(203, 213, 225, 0.85);
}

.notification-item-meta {
    font-size: 0.7rem;
    color: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.notification-mark {
    font-size: 0.7rem;
    color: inherit;
}

.notification-empty-state {
    font-size: 0.85rem;
    color: rgba(100, 116, 139, 0.8);
}

.notification-error-state {
    font-size: 0.82rem;
}

.task-comment-highlight {
    border: 1px solid rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.15);
    animation: task-comment-pulse 1.8s ease-in-out 2;
}

@keyframes task-comment-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0.75rem rgba(251, 191, 36, 0);
    }
}

.notification-item[data-severity="comment"] .notification-item-icon {
    background: rgba(14, 165, 233, 0.2);
    color: #0369a1;
}

.notification-item[data-severity="mention"] .notification-item-icon {
    background: rgba(249, 115, 22, 0.18);
    color: #ea580c;
}

.notification-item[data-severity="assignment"] .notification-item-icon {
    background: rgba(52, 211, 153, 0.2);
    color: #047857;
}

.notification-item[data-severity="status"] .notification-item-icon {
    background: rgba(129, 140, 248, 0.22);
    color: #4338ca;
}

.notification-item[data-severity="priority"] .notification-item-icon {
    background: rgba(248, 113, 113, 0.22);
    color: #b91c1c;
}

.notification-item[data-severity="schedule"] .notification-item-icon {
    background: rgba(96, 165, 250, 0.22);
    color: #1d4ed8;
}

.notification-item[data-severity="subtask"] .notification-item-icon {
    background: rgba(110, 231, 183, 0.22);
    color: #047857;
}

body[data-bs-theme="dark"] .notification-item[data-severity="comment"] .notification-item-icon {
    background: rgba(14, 165, 233, 0.25);
    color: rgba(191, 219, 254, 0.95);
}

body[data-bs-theme="dark"] .notification-item[data-severity="mention"] .notification-item-icon {
    background: rgba(249, 115, 22, 0.25);
    color: rgba(254, 215, 170, 0.95);
}

body[data-bs-theme="dark"] .notification-item[data-severity="assignment"] .notification-item-icon {
    background: rgba(52, 211, 153, 0.25);
    color: rgba(209, 250, 229, 0.95);
}

body[data-bs-theme="dark"] .notification-item[data-severity="status"] .notification-item-icon {
    background: rgba(129, 140, 248, 0.3);
    color: rgba(224, 231, 255, 0.95);
}

body[data-bs-theme="dark"] .notification-item[data-severity="priority"] .notification-item-icon {
    background: rgba(248, 113, 113, 0.3);
    color: rgba(254, 202, 202, 0.95);
}

body[data-bs-theme="dark"] .notification-item[data-severity="schedule"] .notification-item-icon {
    background: rgba(96, 165, 250, 0.3);
    color: rgba(191, 219, 254, 0.95);
}

body[data-bs-theme="dark"] .notification-item[data-severity="subtask"] .notification-item-icon {
    background: rgba(110, 231, 183, 0.3);
    color: rgba(209, 250, 229, 0.95);
}
.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

.navbar .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.18);
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.3);
}

.navbar .navbar-toggler .navbar-toggler-icon {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

.tasks-navbar {
    padding-block: 0.5rem;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.tasks-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.tasks-navbar .navbar-brand:hover {
    color: #e0e7ff;
}

.tasks-navbar-left .tasks-navbar-hamburger {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tasks-navbar-left .tasks-navbar-hamburger:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.tasks-navbar-hamburger::after {
    display: none;
}

.tasks-navbar-hamburger-icon,
.tasks-navbar-hamburger-icon::before,
.tasks-navbar-hamburger-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    content: '';
}

.tasks-navbar-hamburger-icon::before {
    top: -5px;
    position: absolute;
}

.tasks-navbar-hamburger-icon::after {
    top: 5px;
    position: absolute;
}

body[data-bs-theme="light"] .tasks-navbar-hamburger {
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.32);
}

body[data-bs-theme="light"] .tasks-navbar-hamburger-icon,
body[data-bs-theme="light"] .tasks-navbar-hamburger-icon::before,
body[data-bs-theme="light"] .tasks-navbar-hamburger-icon::after {
    background: #111827;
}

.tasks-navbar-search {
    max-width: 480px;
}

.tasks-navbar-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.25);
    border-radius: 12px;
    padding-inline: 0.75rem;
    transition: border 0.2s ease, background 0.2s ease;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.tasks-navbar-search-inner:focus-within {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(30, 41, 59, 0.35);
}

.tasks-navbar-search-icon {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.tasks-navbar-search input {
    border: 0;
    background: transparent;
    color: #f8fafc;
    box-shadow: none;
    padding-left: 0;
}

.tasks-navbar-search input:focus {
    box-shadow: none;
    background: transparent;
}

.tasks-navbar-actions .tasks-navbar-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 600;
}

.tasks-navbar-new-icon {
    font-size: 1rem;
    line-height: 1;
}

.tasks-navbar-user .tasks-navbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.tasks-navbar-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.tasks-navbar-user .tasks-navbar-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tasks-navbar-avatar-initial {
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.03em;
}

.tasks-navbar-user-menu {
    min-width: 220px;
}

.tasks-navbar-user-menu .dropdown-header {
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
}

body[data-bs-theme="dark"] .tasks-navbar-user-menu .dropdown-header {
    color: rgba(226, 232, 240, 0.85);
}

body[data-bs-theme="dark"] .tasks-navbar-menu .dropdown-menu,
body[data-bs-theme="dark"] .tasks-navbar-user-menu,
body[data-bs-theme="dark"] .tasks-navbar-user-menu .dropdown-menu {
    background-color: rgba(30, 41, 59, 0.94);
    border-color: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

body[data-bs-theme="dark"] .tasks-navbar-menu .dropdown-item,
body[data-bs-theme="dark"] .tasks-navbar-user-menu .dropdown-item {
    color: #e2e8f0;
}

body[data-bs-theme="dark"] .tasks-navbar-menu .dropdown-item:hover,
body[data-bs-theme="dark"] .tasks-navbar-user-menu .dropdown-item:hover {
    background-color: rgba(79, 70, 229, 0.25);
    color: #fff;
}

body[data-bs-theme="light"] .tasks-navbar-search-inner {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.22);
}

body[data-bs-theme="light"] .tasks-navbar-search-inner:focus-within {
    border-color: rgba(59, 130, 246, 0.4);
}

body[data-bs-theme="light"] .tasks-navbar-search input {
    color: #1f2937;
}

body[data-bs-theme="light"] .tasks-navbar-search-icon {
    color: rgba(71, 85, 105, 0.85);
}

body[data-bs-theme="light"] .tasks-navbar-user .tasks-navbar-avatar {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.24);
    color: #111827;
}

body[data-bs-theme="light"] .tasks-navbar-user .tasks-navbar-avatar:hover {
    background: rgba(148, 163, 184, 0.28);
}
