body {
    font-family: "Inter", Arial, sans-serif;
    background: #f4f7fb;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

h2 {
    text-align: center;
    color: #1f2937;
}

.search-box {
    display: flex;
    gap: 10px;
    position: sticky;
    top: 10px;
    z-index: 100;
    background: #f4f7fb;
    padding: 10px 0;
}

.search-box input {
    flex: 1;
    padding: 14px;
    border: 2px solid #dbe4f0;
    border-radius: 10px;
    font-size: 15px;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    color: #6b7280;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    transition: 0.2s;
}

.card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    color: white;
}

.score.high {
    background: #10b981;
}

.score.medium {
    background: #f59e0b;
}

.score.low {
    background: #ef4444;
}

.preview {
    margin-top: 10px;
    color: #4b5563;
}

.actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.action-btn {
    background: #eef2ff;
    color: #2563eb;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.full-text {
    display: none;
    margin-top: 10px;
    color: #374151;
}

mark {
    background: #fde68a;
    padding: 2px;
}


/* =========================
   FULLSCREEN LOADER
========================= */

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-box {
    text-align: center;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 7px solid #dbe4f0;
    border-top: 7px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
    margin-bottom: 20px;
}

.loader-box h3 {
    margin: 0;
    color: #1f2937;
}

.loader-box p {
    color: #6b7280;
    margin-top: 10px;
    font-size: 14px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* disabled button */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
