:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: radial-gradient(circle at top right, #1e1b4b, #0f172a 40%);
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.upload-card, .result-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

input[type="file"] {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed #334155;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(15, 23, 42, 0.5);
}

.file-label:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
}

.file-label .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#fileName {
    color: var(--text-muted);
    font-weight: 600;
}

button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, var(--primary), #8b5cf6);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.1s ease;
}

button:hover {
    opacity: 0.9;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.hidden {
    display: none !important;
}

/* Results */
.result-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.score-container {
    text-align: center;
}

.score-container h2 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Circular Progress */
.progress-circle {
    width: 150px;
    margin: 0 auto;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #334155;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out, stroke 0.5s ease;
}

.percentage {
    fill: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 700;
}

.details-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.text-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8fafc;
}

.suggestions-list {
    list-style-position: inside;
    color: var(--text-main);
}

.suggestions-list li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    position: relative;
    line-height: 1.5;
}

.suggestions-list li::marker {
    color: var(--warning);
}

footer {
    text-align: center;
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
