/* OIP v2 — Custom CSS */
/* Dark theme base styles to complement Tailwind CDN */

/* Score badges */
.score-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.score-high {
    background: rgba(5, 216, 144, 0.15);
    color: #05d890;
    border: 1px solid rgba(5, 216, 144, 0.3);
}
.score-medium {
    background: rgba(240, 164, 41, 0.15);
    color: #f0a429;
    border: 1px solid rgba(240, 164, 41, 0.3);
}
.score-low {
    background: #1e2433;
    color: #6b7394;
    border: 1px solid #374151;
}

/* Recommendation badges */
.rec-pursue {
    background: rgba(5, 216, 144, 0.1);
    color: #05d890;
    border: 1px solid rgba(5, 216, 144, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.rec-review {
    background: rgba(240, 164, 41, 0.1);
    color: #f0a429;
    border: 1px solid rgba(240, 164, 41, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
.rec-skip {
    background: #1e2433;
    color: #6b7394;
    border: 1px solid #374151;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 360px;
}
.toast-success {
    background: #052e16;
    color: #05d890;
    border: 1px solid rgba(5, 216, 144, 0.3);
}
.toast-error {
    background: #450a0a;
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.toast-info {
    background: #172554;
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.3);
}

/* Loading spinner */
.spinner {
    animation: spin 0.8s linear infinite;
    height: 1.25rem;
    width: 1.25rem;
    color: #3b82f6;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Card dark theme */
.card {
    background: #171b26;
    border: 1px solid #1e2433;
    border-radius: 12px;
}

/* Text muted */
.text-muted {
    color: #6b7394;
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #1e2433;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d3748;
}

/* Form inputs — dark theme */
.form-input,
.form-select {
    background: #1e2433;
    border: 1px solid #374151;
    color: #e6e9f4;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    transition: border-color 0.15s;
}
.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pagination-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid #1e2433;
    border-radius: 6px;
    font-size: 0.8rem;
    background: #1e2433;
    color: #94a3b8;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.pagination-btn:hover {
    background: #2d3748;
    color: #e6e9f4;
}
.pagination-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* D3 graph tooltips */
.d3-tooltip {
    position: absolute;
    background: #171b26;
    border: 1px solid #1e2433;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #e6e9f4;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}
