/* Tag System Styling */
.card-tag {
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 3px !important;
    padding: 2px 8px !important;
    font-size: 0.75rem !important;
    color: #fff !important;
    margin-right: 4px !important;
    margin-bottom: 4px !important;
    user-select: none !important;
}

.card-tag .tag-remove {
    margin-left: 5px !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
}

.card-tag .tag-remove:hover {
    opacity: 1 !important;
}

/* Tag containers styling */
#editCardTagsContainer,
#newCardTagsContainer {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
    min-height: 30px !important;
}

/* Color option styling for tag management */
.color-option {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-option.selected {
    border-color: #000;
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.color-option.selected::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Custom color input styling */
#customTagHex {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: monospace;
    font-size: 0.9rem;
}

#tagColorPickerInput {
    cursor: pointer;
    width: 100%;
    max-width: 100px;
}

/* Make sure nothing can interfere with tag styles */
.card-tag[data-tag-id] {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Custom styles for kanban cards */

/* Tag styling for cards on board */
.kanban-card .card-tag {
    font-size: 0.65rem;
    padding: 1px 6px;
    margin-right: 3px;
    margin-bottom: 3px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    color: white;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Make tag container spacing more compact on card */
.kanban-card .kanban-card-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4px;
    margin-bottom: 6px;
}

/* Limit card descriptions to 3 lines */
.kanban-card .kanban-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em; /* Fallback for browsers that don't support line-clamp */
}

/* Improved file attachment styles */
.file-attachment {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid #ccc;
}

.file-attachment:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.file-action-btn:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

/* File type specific colors */
.file-attachment[data-file-name$=".pdf"] {
    border-left-color: #dc3545;
}

.file-attachment[data-file-name$=".xls"],
.file-attachment[data-file-name$=".xlsx"],
.file-attachment[data-file-name$=".csv"] {
    border-left-color: #28a745;
}

.file-attachment[data-file-name$=".doc"],
.file-attachment[data-file-name$=".docx"] {
    border-left-color: #0d6efd;
}

.file-attachment[data-file-name$=".ppt"],
.file-attachment[data-file-name$=".pptx"] {
    border-left-color: #fd7e14;
}

.file-attachment[data-file-name$=".jpg"],
.file-attachment[data-file-name$=".jpeg"],
.file-attachment[data-file-name$=".png"],
.file-attachment[data-file-name$=".gif"] {
    border-left-color: #17a2b8;
}

/* Tooltip for clarification */
.file-attachment .file-info {
    position: relative;
}

.file-attachment .file-info::after {
    content: "Click to open/download";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.file-attachment:hover .file-info::after {
    opacity: 1;
}

/* Better file upload section styling */
.files-header {
    padding: 8px 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-weight: 500;
    color: #495057;
    margin-top: 15px;
    margin-bottom: 10px;
    display: block !important; /* Force display at all times */
}

.drag-drop-zone {
    border: 2px dashed #dee2e6;
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

/* File attachments container styling */
[id$="FilesContainer"] {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
    display: block !important; /* Force display at all times */
}

/* Empty state for files container */
[id$="FilesContainer"]:empty {
    padding: 0;
    border: none;
}

/* Empty container styling */
[id$="FilesContainer"]:empty::after {
    content: "No files uploaded yet";
    display: block;
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

/* Improved file attachment styling */
.file-attachment {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    border-left-width: 4px;
    background-color: #f8f9fa;
}

.file-attachment:last-child {
    margin-bottom: 0;
}

/* Improve the upload area appearance */
.drop-instruction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    color: #6c757d;
}

.drop-instruction i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #adb5bd;
}

/* Modern delete button styling for file attachments */
.file-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    opacity: 0.8;
}

.file-remove-btn:hover {
    background-color: rgba(220, 53, 69, 0.25);
    color: #dc3545;
    opacity: 1;
    transform: scale(1.1);
}

.file-remove-btn i {
    font-size: 14px;
}

/* Add deletion animation */
.file-attachment.deleting {
    transform: translateX(10px);
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* File indicator in Kanban cards - match date styling */
.file-indicator {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
}

.file-indicator small {
    font-size: 100%; /* Reset the small element sizing */
}

/* Make the file indicator display above date/priority */
.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
    padding-left: 0.5rem;
    width: 100%;
}

.kanban-card-files {
    margin-top: 0 !important;
    margin-bottom: 0;
}

/* Remove the card-meta-group styling as we won't group them anymore */
.card-meta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Enhanced Notification System Styles */
.notification-toast {
    animation: slideInRight 0.3s ease-out;
}

.notification-toast.notification-mention {
    border-left-color: #0d6efd !important;
}

.notification-toast.notification-success {
    border-left-color: #198754 !important;
}

.notification-toast.notification-warning {
    border-left-color: #ffc107 !important;
}

.notification-toast.notification-danger {
    border-left-color: #dc3545 !important;
}

/* Notification Bell Styles */
#notificationBell {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#notificationBell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

#notificationBadge {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Notification Dropdown Styles */
.notification-dropdown {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.notification-dropdown .dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 0;
}

.notification-item {
    transition: all 0.2s ease;
    border-radius: 0;
    margin: 0;
}

.notification-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.notification-item.unread {
    background-color: rgba(13, 110, 253, 0.05);
    border-left-width: 4px !important;
}

.notification-item.unread:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Mention Alert Styles */
.mention-alert {
    backdrop-filter: blur(10px);
    animation: slideInBounce 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mention-alert .mention-avatar {
    animation: pulse 2s ease-in-out infinite;
}

.mention-alert .btn {
    transition: all 0.2s ease;
}

.mention-alert .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInBounce {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Dark mode support for notifications */
html[data-bs-theme="dark"] .notification-toast {
    background: #21262d !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d;
}

html[data-bs-theme="dark"] .notification-dropdown {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
}

html[data-bs-theme="dark"] .notification-item:hover {
    background-color: #262c36 !important;
}

html[data-bs-theme="dark"] .notification-item.unread {
    background-color: rgba(88, 166, 255, 0.1) !important;
}

html[data-bs-theme="dark"] .notification-item.unread:hover {
    background-color: rgba(88, 166, 255, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-toast {
        min-width: 280px;
        max-width: 90vw;
        right: 10px;
    }
    
    .mention-alert {
        min-width: 300px;
        max-width: 90vw;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .notification-dropdown {
        min-width: 300px;
        max-width: 90vw;
    }
} 