
/* Font Family */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Editor Placeholder */
#editor:empty:before {
    content: attr(data-placeholder);
    color: #475569;
    pointer-events: none;
    font-style: italic;
}

/* Tool Menu Items */
.tool-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8; /* slate-400 */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.tool-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: #f8fafc;
    transform: translateX(4px);
}

.tool-btn.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 100%);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tool-btn svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* AI Detection Highlights - More distinct and accessible */
.ai-high {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 4px;
    padding: 2px 0;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3);
    cursor: help;
    transition: background 0.2s;
}
.ai-high:hover {
    background-color: rgba(239, 68, 68, 0.3);
}

.ai-med {
    background-color: rgba(234, 179, 8, 0.15);
    color: #fde047;
    border-radius: 4px;
    padding: 2px 0;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.3);
    cursor: help;
    transition: background 0.2s;
}
.ai-med:hover {
    background-color: rgba(234, 179, 8, 0.25);
}

/* DIFF HIGHLIGHTS */
del {
    text-decoration: none;
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-bottom: 2px solid rgba(239, 68, 68, 0.5);
    padding: 0 2px;
    opacity: 0.7;
}

ins {
    text-decoration: none;
    background-color: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-bottom: 2px solid rgba(34, 197, 94, 0.5);
    padding: 0 2px;
}

.diff-common {
    color: inherit;
    opacity: 0.6;
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 0.8s linear infinite;
}

/* Gauge Animation */
#scoreGauge {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s;
}
