/* Color Matrix Variables */
:root {
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: #ffffff;
    --primary: #4a90e2;
    --success: #2ecc71;
    --pending: #f39c12;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    padding: 20px;
}

/* Base Layout Structure Containers */
.container {
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    text-align: left;
}

/* Typography Headings */
.title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

/* Input Fields UI Components */
.input-block {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease-in-out;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.code-style {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    letter-spacing: 4px;
    text-align: center;
    font-weight: bold;
}

/* Dynamic State Messages Layer */
.status {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    min-height: 20px;
    margin-bottom: 15px;
}

.text-glow {
    color: var(--success);
    font-weight: 600;
    font-size: 16px;
}

.status-alert {
    font-size: 14px;
    color: var(--pending);
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
}

/* Button Presentation Rules */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease-in-out, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn.primary { background-color: var(--primary); color: white; }
.btn.primary:hover { background-color: #357abd; }

.btn.success { background-color: var(--success); color: white; }
.btn.success:hover { background-color: #27ae60; }

.mt-4 { margin-top: 16px; }
.text-center { text-align: center; }

/* Dynamic Layout Viewport Matrix States */
.screen-view { display: none; }
.screen-view.active { display: block; }
.hidden { display: none !important; }

/* Checklist Overlays Matrix Rows */
.checklist-wrapper {
    margin-top: 10px;
}

.check-line {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f7fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.check-line.status-pending .status-marker { color: var(--pending); }
.check-line.status-success {
    background: #f0fff4;
    border-color: #c6f6d5;
}
.check-line.status-success .status-text {
    color: #22543d;
    font-weight: 500;
}

.status-marker {
    margin-right: 12px;
}

/* Core Presentation CSS Keyframe Animations */
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.slide-down { animation: slideDown 0.5s ease-out forwards; }
.pop-in { animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
