/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #2563eb;       /* Studio Blue */
    --primary-hover: #1d4ed8;
    --bg-color: #f3f4f6;      /* Light Gray Background */
    --card-bg: #ffffff;
    --text-main: #111827;     /* Almost Black */
    --text-muted: #6b7280;    /* Gray Text */
    --border: #e5e7eb;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --error-bg: #fef2f2;
    --error-text: #991b1b;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* =========================================
   2. MAIN STUDIO CONTAINER
   ========================================= */
.studio-container {
    width: 100%;
    max-width: 520px;
    animation: fadeIn 0.5s ease-in-out;
}

.studio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   3. THE CARD (Glass Effect)
   ========================================= */
.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid white;
}

/* =========================================
   4. DRAG & DROP ZONE
   ========================================= */
.file-drop-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
    position: relative;
    margin-bottom: 1.5rem;
}

.file-drop-zone:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.file-drop-zone input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.drop-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.file-count {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* =========================================
   5. INPUT FIELDS
   ========================================= */
.form-group { margin-bottom: 1.25rem; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.input-wrapper { position: relative; }

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f9fafb;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* =========================================
   6. ACTION BUTTON
   ========================================= */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

/* =========================================
   8. DOWNLOAD PAGE SPECIFICS
   ========================================= */
#pinSection {
    background-color: #fff1f2; /* Light Red/Pink Alert Background */
    border: 1px solid #fecaca;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
    display: none; /* Hidden by default */
}

#pinSection label {
    color: #991b1b; /* Dark Red Text */
    display: flex;
    align-items: center;
    gap: 8px;
}

#pinSection input {
    border-color: #fca5a5;
    background: #fff;
}

#pinSection input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Add a Lock Icon before the "2FA Required" text */
#pinSection label::before {
    content: "🔒";
    font-size: 1.1em;
}

.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.98); }

/* =========================================
   7. STATUS & FOOTER
   ========================================= */
#statusMessage {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: none; /* Hidden by default */
}

.status-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #a7f3d0; }
.status-error { background: var(--error-bg); color: var(--error-text); border: 1px solid #fecaca; }
.status-loading { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.footer-link {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-link a:hover { text-decoration: underline; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   10. LANDING PAGE ELEMENTS (Production Polish)
   ========================================= */

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.nav-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* Section Styling */
.section-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-5px); }

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 3rem 0;
    background: white;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   9. PROGRESS BAR
   ========================================= */
.progress-container {
    margin-top: 1.5rem;
    display: none; /* Hidden by default */
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 99px;
}

