/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --surface-color: #ffffff;
    --background-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: transparent;
    color: white;
    padding: 2rem 0 1rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Main Layout */
.main {
    padding: 0;
    min-height: calc(100vh - 140px);
    background: var(--background-color);
    border-radius: 2rem 2rem 0 0;
    margin-top: -1rem;
    position: relative;
    z-index: 5;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.app-layout {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(400px, 1fr);
    grid-template-rows: 1fr auto;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 200px);
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .form-section {
        grid-column: 1;
        grid-row: 1;
    }
    
    .preview-section {
        grid-column: 1;
        grid-row: 2;
    }
    
    .export-section {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .app-layout {
        padding: 1rem;
        gap: 1rem;
    }
}

.form-section {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-section {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.export-section {
    grid-column: 1 / -1;
    grid-row: 2;
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.export-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-transform: none;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .export-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .export-actions {
        justify-content: center;
    }
    
    .btn-large {
        width: 100%;
        padding: 1.25rem;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.925rem;
    letter-spacing: 0.025em;
}

.form-group.required label::after {
    content: " *";
    color: #ef4444;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface-color);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus),
.form-textarea:hover:not(:focus) {
    border-color: var(--text-secondary);
    box-shadow: var(--shadow-md);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

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

.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row.four-cols {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.state-input-wrapper {
    position: relative;
}

.state-input-wrapper select,
.state-input-wrapper input {
    width: 100%;
}

/* Custom Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    padding: 0.75rem 0;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-normal);
}

.checkbox-label:hover .checkmark {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--primary-gradient);
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Character Count */
.char-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Geo Controls */
.geo-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.geo-controls .form-row {
    margin-bottom: 0;
}

.coordinates-display {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 1px solid #c3e6cb;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #2e7d32;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1), var(--shadow-sm);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border-radius: var(--radius-sm);
    border-left: 4px solid #ef4444;
}

.form-group.error .error-message {
    display: block;
    animation: slideInError 0.3s ease-out;
}

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

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutMessage {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Button Styles */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.975rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 48px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    min-height: 56px;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    min-height: 40px;
}

.btn:disabled,
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Card Styles */
.card {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h3::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Preview Pane */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: -2rem -2rem 1.5rem -2rem;
}

/* Preview Stats */
.preview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.stat-value.stat-good {
    color: #28a745;
}

.stat-value.stat-medium {
    color: #fd7e14;
}

.stat-value.stat-warning {
    color: #dc3545;
}

.preview-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
}

.preview-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    position: relative;
    border: 1px solid #334155;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), var(--shadow-lg);
}

.preview-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #64748b, transparent);
}

.preview-container.expanded {
    max-height: none;
    min-height: 60vh;
}

.json-preview {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* JSON Syntax Highlighting */
.json-key {
    color: #9cdcfe;
    font-weight: 500;
}

.json-string {
    color: #ce9178;
}

.json-number {
    color: #b5cea8;
}

.json-boolean {
    color: #569cd6;
    font-weight: 500;
}

.json-null {
    color: #569cd6;
    font-style: italic;
}

.json-brace,
.json-bracket {
    color: #ffd700;
    font-weight: bold;
}

.json-comma {
    color: #d4d4d4;
}

/* Status Indicators */
.status-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-valid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-invalid {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Completeness Score */
.completeness-score {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-high {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.score-medium {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.score-low {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Validation Results */
.validation-results {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.validation-section {
    margin-bottom: 1rem;
}

.validation-section:last-child {
    margin-bottom: 0;
}

.validation-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.validation-title.error {
    color: #dc3545;
}

.validation-title.warning {
    color: #fd7e14;
}

.validation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-item {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.validation-item.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.validation-item.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #fd7e14;
}

.validation-success {
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    border: 2px solid #c3e6cb;
}

/* Export Controls */
.export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.export-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
}

.export-header h2::before {
    content: '🚀';
    font-size: 2rem;
}

.export-actions {
    display: flex;
    gap: 1rem;
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.export-options {
    margin-bottom: 1rem;
}

.option-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.option-group input[type="radio"] {
    margin: 0;
}

.export-message {
    margin-bottom: 1rem;
}

.export-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.875rem;
    color: #1565c0;
}

.export-info h4 {
    margin: 0 0 0.75rem 0;
    color: #1565c0;
    font-size: 1rem;
}

.export-info p {
    margin-bottom: 0.5rem;
}

.export-info code {
    background: rgba(21, 101, 192, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.export-info a {
    color: #1565c0;
    text-decoration: underline;
}

/* Opening Hours */
.hours-section {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.hours-group {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
}

.hours-group:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.hours-group.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    box-shadow: var(--shadow-md);
}

.day-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
}

.day-name {
    font-size: 1rem;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-separator {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.hours-time {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    background: var(--surface-color);
    min-width: 100px;
}

.hours-time:disabled {
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: not-allowed;
}

.hours-closed {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.hours-checkbox {
    margin: 0;
}

.hours-time {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.hours-closed {
    color: #6c757d;
    font-style: italic;
}

/* Geolocation */
.geo-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
}

.coordinates-display {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #2e7d32;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    color: #7c8ef7;
    text-decoration: underline;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* SEO Content Sections */
.content-section {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.content-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-section h3 {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-section h4 {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 1rem;
}

.content-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #666;
}

.content-section li strong {
    color: #333;
    font-weight: 600;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.benefit-item h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Steps Container */
.steps-container {
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #333;
}

.step-content p {
    margin-bottom: 0;
}

/* FAQ Section */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background: white;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item p {
    padding: 1.5rem;
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.feature-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
    }
    
    .form-section {
        grid-column: 1;
        grid-row: 1;
    }
    
    .preview-section {
        grid-column: 1;
        grid-row: 2;
    }
    
    .export-section {
        grid-column: 1;
        grid-row: 3;
    }
    
    .form-row.four-cols {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .main {
        border-radius: 1rem 1rem 0 0;
    }
    
    .app-layout {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .export-buttons {
        grid-template-columns: 1fr;
    }
    
    .preview-header {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
        padding: 1rem;
    }
    
    .form-row,
    .form-row.three-cols,
    .form-row.four-cols {
        grid-template-columns: 1fr;
    }
    
    .hours-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .export-buttons {
        grid-template-columns: 1fr;
    }
    
    .hours-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .geo-controls {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Content sections responsive */
    .content-section {
        padding: 2rem 0;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
    }
    
    .benefits-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0 0.5rem 0;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .app-layout {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .export-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .export-actions {
        flex-direction: column;
        width: 100%;
    }
    
    /* Content sections mobile */
    .content-section {
        padding: 1.5rem 0;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .benefit-item,
    .feature-item {
        padding: 1rem;
    }
    
    .faq-item h3 {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-item p {
        padding: 1rem;
    }
}