:root {
    /* Portfolio-matching color scheme */
    --bg: #ffffff;           /* White background like portfolio */
    --bg-2: #f9fafb;         /* Very light gray */
    --card: #ffffff;         
    --text: #111827;         /* Dark gray text (gray-900) */
    --text-light: #4b5563;   /* Medium gray (gray-600) */
    --muted: #6b7280;        /* Gray-500 */
    --primary: #1d4ed8;      /* Blue-700 - matching portfolio accent */
    --primary-dark: #1e40af; /* Blue-800 */
    --accent: #2563eb;       /* Blue-600 */
    --success: #10b981;      
    --danger: #ef4444;       
    --border: rgba(17,24,39,0.1);
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
}

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

html, body { 
    min-height: 100%; 
    background: var(--bg);
}

body {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--text);
    line-height: 1.6;
    padding: 0;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-brand:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    gap: 1.5rem;
}

.header { 
    text-align: left;
    margin-bottom: 1.5rem;
}

.header h1 { 
    font-size: 3rem; 
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.subtitle { 
    color: var(--text-light); 
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.description {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Blue underline like portfolio "About Me" heading */
.header h1::after {
    content: '';
    display: block;
    width: 75px;
    height: 5px;
    background: var(--primary);
    border-radius: 999px;
    margin-top: 0.5rem;
}

/* Gradient title matching portfolio style */
.gradient-title {
    background: linear-gradient(90deg, var(--text), var(--text));
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.upload-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.muted { 
    color: var(--muted); 
}

.file-input {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--border);
    border-radius: 8px;
    background: var(--bg-2);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
    cursor: pointer;
}

.file-input:hover {
    border-color: var(--primary);
    background: white;
}

.file-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    width: 100%;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover { 
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.btn-primary:active { 
    transform: translateY(0);
}

.btn-primary:focus { 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status area - contains progress or result */
.status-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    min-height: 60px;
}

.status-area.hidden {
    display: none;
}

/* Progress section */
.progress-section {
    text-align: center;
}

.progress-section.hidden {
    display: none;
}

.status-row { 
    margin-top: 0.75rem; 
    font-weight: 500; 
    font-size: 0.95rem;
}

.progress {
    height: 8px;
    width: 100%;
    background: var(--bg-2);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 300ms ease;
}

/* Result display */
.result-section {
    text-align: center;
}

.result-section.hidden {
    display: none;
}

.result-section p {
    margin: 0;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.6;
}

/* Info section */
.info-section {
    margin-top: 1rem;
    text-align: center;
}

.info-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.info-text strong {
    color: var(--text-light);
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 640px) {
    body { 
        padding: 0; 
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .container { 
        margin: 2rem auto; 
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .header h1 { 
        font-size: 2.5rem; 
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .result-icon { 
        font-size: 1.75rem; 
    }
    
    .tech-badges {
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-height: 700px) {
    .container { 
        margin-top: 2rem; 
    }
}

