:root {
    --primary: #2563eb;
    --success: #059669;
    --danger: #dc2626;
    --bg: #f8fafc;
    --text: #1e293b;
    --card: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

.hidden { display: none !important; }

/* Auth Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Layout */
main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.span-two { grid-column: span 2; }

/* Components */
.card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.shadow { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

.upload-zone {
    border: 2px dashed #cbd5e1;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: 6px;
    transition: 0.3s;
}

.upload-zone:hover { border-color: var(--primary); background: #eff6ff; }

input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0 1.25rem 0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 1px solid #94a3b8;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.projection-box {
    font-size: 2rem;
    font-weight: bold;
    color: var(--danger);
    margin-top: 1rem;
}

.status-tag {
    background: #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
