/* Comment Input Modal Styles */
.graph-comment-input-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.comment-input-box {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.comment-input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.comment-input-header span {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.comment-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.comment-close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.comment-input-box textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 20px;
    border: none;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    resize: vertical;
    outline: none;
}

.comment-input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
}

#commentInputInfo {
    font-size: 12px;
    color: #6b7280;
}

.comment-input-actions {
    display: flex;
    gap: 8px;
}

.comment-cancel-btn,
.comment-save-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.comment-cancel-btn {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.comment-cancel-btn:hover {
    background: #f3f4f6;
}

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

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

.comment-save-btn:active {
    transform: scale(0.98);
}

/* ==================== DARK MODE ==================== */
@media (prefers-color-scheme: dark) {
    .graph-comment-input-modal {
        background: rgba(0, 0, 0, 0.6);
    }

    .comment-input-box {
        background: #1f2937;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    }

    .comment-input-header {
        border-bottom-color: #374151;
    }

    .comment-input-header span {
        color: #f3f4f6;
    }

    .comment-close-btn {
        color: #9ca3af;
    }

    .comment-close-btn:hover {
        background: #374151;
        color: #f3f4f6;
    }

    .comment-input-box textarea {
        background: #1f2937;
        color: #e5e7eb;
    }

    .comment-input-box textarea::placeholder {
        color: #6b7280;
    }

    .comment-input-footer {
        border-top-color: #374151;
        background: #111827;
    }

    #commentInputInfo {
        color: #9ca3af;
    }

    .comment-cancel-btn {
        background: #374151;
        color: #e5e7eb;
        border-color: #4b5563;
    }

    .comment-cancel-btn:hover {
        background: #4b5563;
    }

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

    .comment-save-btn:hover {
        background: #1d4ed8;
    }
}