:root {
    --primary-color: #6366f1;
    --secondary-color: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --static-bg: #f8fafc;
}

body {
    background-color: #f1f5f9;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23cbd5e1' fill-opacity='0.3'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3Ccircle cx='11' cy='11' r='1'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

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

.page-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.3), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.2), transparent 50%);
    z-index: 0;
}

.page-header .header-content {
    position: relative;
    z-index: 1;
}

.page-header .logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.page-header .logo-icon {
    font-size: 3rem;
    color: #60a5fa;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.5));
}

.page-header .logo-text {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.05em;
    margin: 0;
}

.page-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    color: #e2e8f0;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Styles unique to qr_details.html */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-static {
    background: var(--static-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
    width: 100%;
}

.form-static i {
    flex-shrink: 0;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.form-static.large {
    min-height: 4rem;
    align-items: flex-start;
    padding-top: 0.75rem;
}

.form-static.large i {
    margin-top: 0.125rem;
}

.form-static.empty {
    color: #94a3b8;
    font-style: italic;
}

.form-static.text-end {
    justify-content: flex-end;
    text-align: right;
}

.info-row {
    margin-bottom: 1rem;
}

.contact-highlight {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: var(--success-color);
    color: #065f46;
    font-weight: 600;
}

.emergency-highlight {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-color: #ef4444;
    color: #991b1b;
    font-weight: 600;
}

.whatsapp-container {
    background: var(--static-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.btn-whatsapp {
    background: #25d366;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    box-shadow: none;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.btn-whatsapp i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.calories-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.calories-info i {
    margin-right: 0.5rem;
    color: #f59e0b;
}

.qr-footer {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.qr-footer i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.message-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.message-section .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.message-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

.btn-send {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-send:hover {
    background: #5855eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.btn-send i {
    margin-right: 0.5rem;
}

/* Styles unique to qr_edit.html */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-icon {
    font-size: 2rem;
    margin-right: 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

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

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.btn-save {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    color: white;
}

.row {
    margin-bottom: 1rem;
}

/* Media Queries - combined and prioritized qr_details.html for overlapping sections */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .page-header {
        padding: 2rem 1rem;
    }
    
    .page-header .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-header .logo-icon {
        font-size: 2.5rem;
    }
    
    .page-header .logo-text {
        font-size: 2.2rem;
    }
    
    .page-header .subtitle {
        font-size: 1rem;
    }
    
    .info-section {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.25rem;
    }
    
    .section-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .info-row {
        margin-bottom: 1rem;
    }
    
    .form-static {
        font-size: 0.95rem;
        padding: 0.65rem;
    }
    
    .btn-whatsapp {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .calories-info {
        justify-content: flex-start;
        text-align: left;
    }
    
    .form-static.text-end {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 10px;
    }
    
    .page-header {
        padding: 1.5rem 0.75rem;
    }
    
    .page-header .logo-icon {
        font-size: 2rem;
    }
    
    .page-header .logo-text {
        font-size: 1.8rem;
    }
    
    .page-header .subtitle {
        font-size: 0.9rem;
    }
    
    .info-section {
        padding: 1.25rem;
    }
    
    .form-section {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
    
    .form-static {
        font-size: 0.9rem;
        padding: 0.6rem;
        min-height: 2.25rem;
    }
    
    .form-static.large {
        min-height: 3.5rem;
    }
}

/* Styles for setup_wizard.html */
.radio-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
}
.radio-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.radio-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    background-color: var(--secondary-color);
}
.radio-card input[type="radio"] {
    margin-top: 0.3rem;
    margin-right: 1rem;
    flex-shrink: 0;
    transform: scale(1.2);
}
.radio-card-content h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}
.radio-card-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.radio-card-content .example {
    font-style: italic;
    color: #64748b;
    font-size: 0.85rem;
}
.btn-next {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}
.btn-next:hover {
    background: #5855eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}
@media (max-width: 768px) {
    .radio-card {
        padding: 1rem;
    }
    .radio-card-content h5 {
        font-size: 1.1rem;
    }
    .radio-card-content p {
        font-size: 0.85rem;
    }
    .radio-card-content .example {
        font-size: 0.8rem;
    }
} 