/* Mobile-first CSS with clean, minimal design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding: 16px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Language switcher */
.language-switcher {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.lang-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
}

.lang-btn.active {
    background: white;
    color: #8B4513;
}

.container {
    position: relative;
}

/* Header */
header {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 24px 20px;
    text-align: center;
}

header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

header p {
    opacity: 0.9;
    font-size: 16px;
}

/* Form sections */
.audit-section {
    padding: 24px 20px;
    border-bottom: 1px solid #eee;
}

.audit-section:last-of-type {
    border-bottom: none;
}

.audit-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #2c3e50;
}

/* Checklist items */
.checklist {
    margin-bottom: 16px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
    min-height: 48px; /* Touch-friendly */
}

.checkbox-item:hover {
    background-color: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background-color: #8B4513;
    border-color: #8B4513;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: -2px;
    left: 3px;
}

/* Score display */
.score {
    font-weight: 600;
    color: #8B4513;
    font-size: 16px;
    text-align: right;
}

/* Total score */
.total-score {
    padding: 24px 20px;
    text-align: center;
    background: #f8f9fa;
}

.total-score h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.rating {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
}

.rating.needs-improvement { color: #e74c3c; }
.rating.average { color: #f39c12; }
.rating.good { color: #27ae60; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-text {
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    padding: 12px 24px;
    margin: 8px;
}

.btn-primary {
    background: #8B4513;
    color: white;
    width: calc(100% - 16px);
    margin: 16px 8px;
}

.btn-primary:hover {
    background: #A0522D;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-text {
    background: none;
    color: #666;
    text-decoration: underline;
}

/* Report output */
.report-output {
    padding: 20px;
    background: #f8f9fa;
}

.report-output h3 {
    margin-bottom: 16px;
    color: #2c3e50;
}

#reportText {
    width: 100%;
    height: 200px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
}

/* Install prompt */
.install-prompt {
    padding: 20px;
    background: #e8f5e8;
    border-top: 1px solid #ddd;
    text-align: center;
}

.install-prompt p {
    margin-bottom: 16px;
    color: #2c3e50;
}

/* Report type selection */
.report-type {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.report-type h4 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 16px;
}

.radio-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.radio-item:hover {
    background-color: rgba(139, 69, 19, 0.1);
}

.radio-item input[type="radio"] {
    margin-right: 8px;
    accent-color: #8B4513;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Tablet and desktop styles */
@media (min-width: 768px) {
    body {
        padding: 32px;
    }
    
    .container {
        max-width: 800px;
    }
    
    header {
        padding: 32px;
    }
    
    header h1 {
        font-size: 32px;
    }
    
    .audit-section {
        padding: 32px;
    }
    
    .audit-section h2 {
        font-size: 20px;
    }
    
    .checkbox-item {
        padding: 12px;
    }
    
    .total-score {
        padding: 32px;
    }
    
    .btn-primary {
        max-width: 300px;
        margin: 24px auto;
        display: block;
    }
    
    .report-output {
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    .checklist {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .checkbox-item {
        margin-bottom: 8px;
    }
}