/* Simple Fire Safety App Styles - Unified SafeProd System */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    /* Adjusted for unified navigation */
    padding-top: 80px !important;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.app-header h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.app-header p {
    opacity: 0.9;
    font-size: 16px;
}

/* Form Sections */
.form-section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Check Items for Arena Section */
.check-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.check-item h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.check-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.check-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.check-options label:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.check-options input[type="radio"] {
    width: auto;
    margin: 0;
}

.check-options input[type="radio"]:checked + span {
    color: #dc2626;
    font-weight: 600;
}

/* Photo Upload */
.photo-upload {
    margin-top: 20px;
    padding: 20px;
    background: #f1f3f4;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.photo-upload label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.photo-upload input[type="file"] {
    width: 100%;
    padding: 10px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
}

.photo-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    min-height: 20px;
}

.photo-preview img {
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Submit Section */
.submit-section {
    text-align: center;
    background: #f8f9fa;
}

.submit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-info {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* Status Messages */
.status-message {
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-top: 80px !important;
    }
    
    .container {
        border-radius: 8px;
    }
    
    .app-header {
        padding: 20px;
    }
    
    .app-header h1 {
        font-size: 24px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .check-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .check-options label {
        justify-content: flex-start;
    }
    
    .submit-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Unified SafeProd Enhancements */
.safeprod-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #dc2626;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
}

.system-info {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7f1d1d;
}

.system-info strong {
    color: #dc2626;
}