:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --background: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/vision-bg.png') no-repeat center center/cover;
    filter: brightness(0.4) saturate(1.2);
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -1px;
}

header h1 span {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

header p {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
}

.glass-section {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.upload-placeholder .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.preview-img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

textarea {
    width: 100%;
    height: 120px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: inherit;
    resize: none;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.primary-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4);
}

.secondary-btn {
    display: block;
    text-align: center;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
}

.hidden { display: none; }

#download-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.educational h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--accent);
}

.educational-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--primary);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.extracted-text-container {
    background: #000;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    margin-top: 10px;
    overflow-x: auto;
}

.payload-warning {
    margin-top: 25px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    text-align: left;
}

.payload-warning p {
    font-size: 0.9rem;
    color: #fca5a5;
    margin-bottom: 10px;
}

#extracted-text {
    font-family: 'JetBrains Mono', monospace;
    color: #4ade80;
}

@media (max-width: 600px) {
    .educational-grid { grid-template-columns: 1fr; }
    header h1 { font-size: 2.5rem; }
}
