:root {
    /* Professional Blue & Slate Palette */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --bg-body: #F8FAFC;          /* Lightest Slate */
    --bg-surface: #FFFFFF;
    
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    
    --border: #E2E8F0;
    --radius: 12px;
    
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    background-image: radial-gradient(#2564eb3b 1px, #F8FAFC 1px);
    background-size: 20px 20px;
    color: var(--text-body);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Layout Wrapper to stack Breadcrumbs + Card */
.layout-wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Space between breadcrumbs and main card */
}

/* Breadcrumbs Container */
.nav-container {
    padding: 0 4px; /* Align visually with card rounded corners */
}

.breadcrumbs {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumbs a { text-decoration: none; color: var(--text-muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: #CBD5E1; }
.breadcrumbs .current { color: var(--primary); background: #EFF6FF; padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* Main App Card */
.app-card {
    background: var(--bg-surface);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Header Row: Title Left, Close Button Right */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent;
}
.close-btn:hover {
    background-color: #F1F5F9;
    color: var(--text-heading);
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
    /* Ensure subtitle doesn't overlap the header alignment */
    padding-right: 20px; 
}

/* Drop Zone */
.drop-zone {
    background: #F8FAFC;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    text-align: center;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: #EFF6FF;
}

.drop-zone input {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}

/* --- UPDATED BLOCK --- */
.icon-circle {
    width: 64px;
    height: 64px;
    background: #EFF6FF; /* Lighter blue background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary); /* Icon color matches primary blue */
    margin-bottom: 8px;
}

/* Add this new selector to size the SVG */
.icon-circle svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}
/* ------------------- */

.drop-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
}

/* Status & Buttons */
.file-info {
    height: 20px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    opacity: 0;
}
.file-info.active { opacity: 1; }

/* --- REPLACE .file-status BLOCK --- */
.file-status {
    display: none; /* Hidden by default */
    align-items: center;
    gap: 10px; /* Space between border/icon and text */

    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 6px; /* Slightly tighter radius for alerts */
    
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    line-height: 1.4;

    /* Default State (Processing/Success) - Modern Blue */
    background-color: #EFF6FF; /* Blue-50 */
    color: #1E40AF;            /* Blue-800 */
    border: 1px solid #DBEAFE; /* Blue-200 */
    border-left: 4px solid #3B82F6; /* Blue-500 Accent */
    
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.file-status.active {
    display: flex; /* Only takes up space when active */
    animation: fadeIn 0.2s ease-in-out;
}

.file-status.error {
    background-color: #FEF2F2; /* Red-50 */
    color: #991B1B;            /* Red-800 */
    border-color: #FECACA;     /* Red-200 */
    border-left-color: #EF4444; /* Red-500 Accent */
}

/* Animation */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------- */

.btn-primary {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 16px;
}
.btn-primary:hover { background-color: var(--primary-hover); }

/* --- CLEAR BUTTON (Ghost Style) --- */
.clear-btn {
    margin-left: auto; /* Pushes to right */
    background-color: transparent;
    border: none;
    cursor: pointer;

    /* Typography */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase; /* Modern "Badge" feel */
    letter-spacing: 0.5px;
    color: inherit; /* Takes the Blue or Red color from the parent */
    
    /* Shape & Interaction */
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.75;
}

.clear-btn:hover {
    /* Creates a subtle darkened background on hover */
    background-color: rgba(0, 0, 0, 0.06); 
    opacity: 1;
    transform: translateY(-1px); /* Slight lift effect */
}

.clear-btn:active {
    transform: translateY(0);
    background-color: rgba(0, 0, 0, 0.1);
}