.account-files-container {
    display: grid;
    grid-template-columns: 400px 1fr 1fr;
    height: 100%;
    gap: 10px;
    padding: 10px 0 10px 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Common Column Card Style */
.account-files-column {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    max-height: 700px;

}

/* Bubble */
.comment-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-family: 'Calibri', 'Roboto', sans-serif;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.comment-wrapper.self .comment-bubble {
    border-bottom-right-radius: 4px;
}

.comment-wrapper.other .comment-bubble {
    border-bottom-left-radius: 4px;
}

/* Delete Button */
.comment-delete-btn {
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    padding: 6px;
    transition: all 0.2s;
}

.comment-wrapper.self .comment-delete-btn {
    right: 100%;
    margin-right: 4px;
}

.comment-wrapper.other .comment-delete-btn {
    left: 100%;
    margin-left: 4px;
}

.comment-wrapper:hover .comment-delete-btn {
    opacity: 1;
}

.comment-delete-btn:hover {
    color: #ef4444;
}

/* Input Area */
.comments-input-area {
    padding: 20px;
    border-top: 1px solid #f1f5f9;
    background: white;
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.comments-input-area textarea {
    flex: 1;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 14px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    resize: none;
    min-height: 46px;
    max-height: 150px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    line-height: 1.5;
    background-color: #f1f5f9;
    color: #334155;
    overflow-y: auto;
}

.comments-input-area textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.comments-input-area textarea::placeholder {
    color: #94a3b8;
}

.send-comment-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.25);
}

.send-comment-btn:hover {
    background: #2563eb;

}

.send-comment-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.25);
}

.send-comment-btn:disabled {
    background: #e2e8f0;
    color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-comment-btn i {
    margin-left: -2px;
    /* Optical alignment */
    font-size: 16px;
}

/* Column Header */
.account-files-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    flex-shrink: 0;
}

.account-files-title {
    font-size: 14px;
    font-weight: 600;
    color: #2C333A;
    margin: 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-files-title i {
    font-size: 16px;
}

.account-files-title .fa-folder {
    color: #3b82f6;
}

.account-files-title .fa-sticky-note {
    color: #f59e0b;
}

.account-files-title .fa-comments {
    color: #10b981;
}

.account-files-title .fa-bell {
    color: #ef4444;
}

/* Column Content Area */
.account-files-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}



.files-controls {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}



/* Expanded File Card for Column View */
.file-item-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    cursor: default;
    margin-bottom: 10px;
}

.file-item-card:hover {
    border-color: #bfdbfe;

}

.file-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Icon colors */
.file-item-icon.excel {
    background: #ecfdf5;
    color: #059669;
}

.file-item-icon.pdf {
    background: #fef2f2;
    color: #dc2626;
}

.file-item-icon.image {
    background: #eff6ff;
    color: #2563eb;
}

.file-item-icon.video {
    background: #fffbeb;
    color: #d97706;
}

.file-item-icon.other {
    background: #f1f5f9;
    color: #64748b;
}

.file-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin: 0 0 4px 0;
    white-space: wrap;
    overflow: hidden;
    text-overflow: break-word;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.file-item-meta {
    font-size: 12px;
    color: #64748b;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.file-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-action-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.icon-action-btn.delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ===== NOTES SECTION ===== */
.note-add-trigger {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.note-add-trigger:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* Compact Note Card */
.compact-note-card {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    padding: 12px;
    position: relative;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compact-note-card:hover {
    border: 1px solid #3b82f6;
    border-left: 3px solid #2563eb;

}

.current-note-date {
    font-size: 12px;
    color: #1e3a8a;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 0;
    display: block;
    text-align: right;
    letter-spacing: 0.5px;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.compact-note-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0 0 6px 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
    word-wrap: break-word;
}

.compact-note-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Calibri', 'Roboto', sans-serif;
    white-space: pre-wrap;
    /* Preserve whitespace and newlines */
}

.note-delete-absolute {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.note-delete-absolute:hover {
    opacity: 1;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===== COMMENTS SECTION ===== */
/* ===== UPDATES SECTION (Formerly Comments) ===== */
.account-files-comments {
    background-color: #ffffff;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    padding-bottom: 70px;
}

/* Date Separator */
.comment-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
    position: relative;
}

.comment-date-separator span {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Calibri', 'Roboto', sans-serif;
    letter-spacing: 0.5px;
}

/* Update Card */
.update-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    transition: all 0.2s;
    animation: fadeIn 0.2s ease-out;
    overflow: visible;
    z-index: 1;
}

.update-card:hover {
    z-index: 10;
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

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

.update-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.update-time {
    font-size: 11px;
    color: #94a3b8;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.update-body {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Calibri', 'Roboto', sans-serif;
    padding-left: 0;
}

/* Update Actions */
.update-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-menu-container {
    position: relative;
    line-height: 0;
}

.update-menu-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.update-menu-btn:hover,
.update-menu-btn.active {
    background-color: #f1f5f9;
    color: #475569;
}

.update-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 120px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
    z-index: 50;
    overflow: hidden;
    margin-top: 4px;
}

.update-dropdown.visible {
    display: block;
    animation: fadeIn 0.1s ease-out;
}

.update-dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.1s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.update-dropdown-item:hover {
    background: #f8fafc;
}

.update-dropdown-item i {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.update-dropdown-item.delete {
    color: #ef4444;
}

.update-dropdown-item.delete:hover {
    background: #fef2f2;
}

/* Edit Mode Styles */
.update-body-edit {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    width: 100%;
}

.update-edit-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    font-size: 13px;
    resize: none;
    min-height: 60px;
    box-sizing: border-box;
    line-height: 1.5;
    background: #ffffff;
    color: #334155;
}

.update-edit-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.update-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.update-edit-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
}

.update-btn-save {
    background: #3b82f6;
    color: white;
}

.update-btn-save:hover {
    background: #2563eb;
}

.update-btn-cancel {
    background: white;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.update-btn-cancel:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Input Area Redesign */
.comments-input-area {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    border-top: none;
    background: #ffffff;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}


.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comments-input-area textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    resize: none;
    min-height: 50px;
    max-height: 150px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    line-height: 1.5;
    background-color: #f8fafc;
    color: #334155;
    display: block;
}

.comments-input-area textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    min-height: 80px;
}

.comments-input-area textarea::placeholder {
    color: #94a3b8;
}

.input-actions {
    display: flex;
    justify-content: flex-end;
}

.send-comment-btn {
    padding: 6px 16px;
    height: 32px;
    border-radius: 6px;
    background: #3b82f6;
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 0;
    width: auto;
}

.send-comment-btn:hover {
    background: #2563eb;
}

.send-comment-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.send-comment-btn:disabled {
    background: #e2e8f0;
    color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Empty States */
.empty-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    height: 100%;
    padding: 20px;
}

.empty-placeholder i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.empty-placeholder p {
    font-size: 13px;
    margin: 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

/* Note Modal */
.note-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.note-modal {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.note-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.note-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #2C333A;
    margin: 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.note-modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #64748b;
}

.note-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.note-form-group {
    margin-bottom: 16px;
}

.note-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #4b5563;
    font-size: 13px;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.note-form-group input,
.note-form-group select,
.note-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
    color: #1e293b;
    white-space: pre-wrap;
}

.note-form-group input:focus,
.note-form-group select:focus,
.note-form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.note-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.note-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* Common/Preview Modal styling */
.file-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.file-preview-modal {
    background: white;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.file-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.file-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
}

.file-preview-close {
    padding: 8px 16px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.file-preview-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.file-preview-content {
    flex: 1;
    overflow: auto;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.file-preview-image,
.file-preview-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Button overrides for modal */
.note-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Calibri', 'Roboto', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-btn-primary {
    background: #10b981;
    color: white;
}

.note-btn-primary:hover {
    background: #059669;
}

.note-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.note-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 1024px) {
    .account-files-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        overflow-y: auto;
        gap: 20px;
    }

    .section-column {
        height: 500px;
        min-height: 500px;
    }


}