/* AQUA-360 Instruction Pages Stylesheet */
:root {
    --primary: #0a6abf;
    --primary-dark: #084a8a;
    --accent: #00d4aa;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1a2332;
    --text-light: #5a6a7e;
    --border: #e2e8f0;
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 32px 24px;
    text-align: center;
}

.header img.logo {
    height: 40px;
    margin-bottom: 16px;
}

.header h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.header .subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
}

.product-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.product-hero img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: var(--radius);
    background: white;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.product-hero .info h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.product-hero .info .price {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section h3 .icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.section ul {
    list-style: none;
    padding: 0;
}

.section ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    padding-left: 20px;
    position: relative;
}

.section ul li:last-child { border-bottom: none; }

.section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.dosage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.dosage-table th, .dosage-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.dosage-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.dosage-table tr:nth-child(even) { background: #f1f5f9; }

.warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.warning .warn-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.steps ol {
    padding-left: 24px;
}

.steps ol li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.steps ol li:last-child { border-bottom: none; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 24px;
    padding: 12px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: background 0.2s;
}

.back-link:hover { background: #e8f0fe; }

.footer-note {
    text-align: center;
    padding: 24px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.qr-section {
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.qr-section img {
    width: 140px;
    height: 140px;
    margin: 12px auto 8px;
    display: block;
}

.qr-section p {
    font-size: 0.85rem;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .product-hero {
        flex-direction: column;
        text-align: center;
    }
    .product-hero img { width: 120px; height: 120px; }
    .header h1 { font-size: 1.3rem; }
    .dosage-table th, .dosage-table td { padding: 8px; font-size: 0.8rem; }
}
