/* Orðarún - Red Color Scheme Styles */

:root {
    --primary-red: #dc2626;
    --light-red: #fca5a5;
    --dark-red: #991b1b;
    --bg-red: #fef2f2;
    --text-red: #7f1d1d;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --dark-gray: #334155;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.header .subtitle {
    text-align: center;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Navigation */
.nav {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.nav a:hover, .nav a.active {
    background: var(--bg-red);
    color: var(--dark-red);
}

/* Main Content */
.main-content {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-red);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background: var(--dark-red);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray);
}

.btn-secondary:hover {
    background: var(--dark-gray);
}

.btn-success {
    background: var(--success-green);
}

.btn-warning {
    background: var(--warning-orange);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-header {
    border-bottom: 2px solid var(--bg-red);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--text-red);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-red);
    color: var(--text-red);
    font-weight: 600;
}

.table tr:hover {
    background: var(--light-gray);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid var(--primary-red);
    color: var(--text-red);
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid var(--warning-orange);
    color: #92400e;
}

.alert-info {
    background: var(--bg-red);
    border: 1px solid var(--light-red);
    color: var(--text-red);
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-red { color: var(--text-red); }
.text-gray { color: var(--gray); }
.text-success { color: var(--success-green); }

.bg-red { background: var(--bg-red); }
.bg-light { background: var(--light-gray); }

.hidden { display: none; }
.visible { display: block; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* Question Interface */
.question-card {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--white);
}

.question-number {
    background: var(--primary-red);
    color: var(--white);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.question-options {
    list-style: none;
    margin-top: 1rem;
}

.question-options li {
    margin-bottom: 0.75rem;
}

.question-options label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.question-options label:hover {
    border-color: var(--light-red);
    background: var(--bg-red);
}

.question-options input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: var(--primary-red);
}

.question-options input[type="radio"]:checked + label {
    border-color: var(--primary-red);
    background: var(--bg-red);
    color: var(--text-red);
}

/* Session Info */
.session-info {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

.session-code {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin: 1rem 0;
}

.qr-code {
    background: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin: 1rem 0;
}

/* Progress Bar */
.progress {
    background: var(--border-color);
    border-radius: 1rem;
    height: 0.5rem;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    background: var(--primary-red);
    height: 100%;
    transition: width 0.3s;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-red);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-red);
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .session-code {
        font-size: 2rem;
    }
}

/* Company Branding */
.company-branding {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid var(--bg-red);
    margin-top: 3rem;
    background: var(--light-gray);
}

.company-logo {
    max-height: 60px;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.company-logo:hover {
    opacity: 1;
}

.company-info {
    color: var(--gray);
    font-size: 0.875rem;
}

.company-info a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.company-info a:hover {
    text-decoration: underline;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 120px;
}

.header-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header-logo img {
    height: 120px;
    width: auto;
}

.header-title {
    text-align: center;
    flex: 1;
}

/* Results branding */
.results-branding {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-red);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-red);
}

/* Print Styles */
@media print {
    .nav,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .company-branding {
        border-top: 1px solid var(--border-color);
        background: white;
        page-break-inside: avoid;
    }
    
    .results-branding {
        background: white;
        border: 1px solid var(--border-color);
    }
}