/* Salem QR Waste Registration System - Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #0d62cc;
    --primary-hover: #0b54b0;
    --dark-blue-header: #0d5db8;
    --accent-green: #15803d;
    --accent-green-hover: #166534;
    --bg-light-blue: #f0f5fc;
    --card-bg: #ffffff;
    --border-color: #dbe7f6;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --input-border: #cbd5e1;
    --input-focus: #3b82f6;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 16px -2px rgba(13, 98, 204, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light-blue);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 12px;
    -webkit-font-smoothing: antialiased;
}

/* App Container - Mobile View Optimized */
.app-container {
    max-width: 480px;
    margin: 4px auto;
    padding: 0 8px;
    width: 100%;
}

/* Wide Container for Tables / Reports */
.app-container.wide-container {
    max-width: 860px;
}

/* Top App Header - Compact Mobile View */
.header-banner {
    background: linear-gradient(90deg, #0d5db8 0%, #0d62cc 100%);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(13, 93, 184, 0.2);
    margin-bottom: 6px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
}

.header-brand .brand-icon {
    font-size: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.header-brand h1 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin: 0;
    color: #ffffff;
}

.city-badge {
    background: #ffffff;
    color: #0d5db8;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

/* Top Mini Navigation Bar - Compact Horizontal Scroll */
.sub-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar {
    display: none;
}

.sub-nav-link {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 4px 9px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.sub-nav-link:hover, .sub-nav-link.active {
    background: #0d62cc;
    color: #ffffff;
    border-color: #0d62cc;
    box-shadow: 0 2px 6px rgba(13, 98, 204, 0.2);
}

/* Registration & Content Cards - Tight Padding to Avoid Scroll */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px -2px rgba(13, 98, 204, 0.06);
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0d5db8;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.card-header-title i {
    font-size: 16px;
    color: #0d5db8;
}

/* Form Layout Grid - Compact Mobile Spacing */
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.form-row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-group label {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.1px;
    margin-bottom: 1px;
}

.form-control, .form-select {
    width: 100%;
    padding: 5px 9px;
    font-size: 13px;
    height: 33px;
    line-height: 1.25;
    font-family: inherit;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid var(--input-border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 12px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    cursor: pointer;
}

/* Radio Button Options for Occupancy */
.occupancy-toggle-group {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.occupancy-option {
    position: relative;
    cursor: pointer;
}

.occupancy-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.occupancy-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    transition: all 0.2s ease;
    user-select: none;
}

.occupancy-option input[type="radio"]:checked + .occupancy-pill {
    border-color: #0d62cc;
    background: #eff6ff;
    color: #0d62cc;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(13, 98, 204, 0.15);
}

.occupancy-pill .radio-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.occupancy-option input[type="radio"]:checked + .occupancy-pill .radio-indicator {
    border-color: #0d62cc;
}

.occupancy-option input[type="radio"]:checked + .occupancy-pill .radio-indicator::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0d62cc;
}

/* Action Buttons Bottom Bar - Compact Mobile */
.action-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.btn-get-location {
    background-color: #15803d;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(21, 128, 61, 0.2);
    transition: all 0.2s;
}

.btn-get-location:hover {
    background-color: #166534;
    box-shadow: 0 4px 10px rgba(21, 128, 61, 0.3);
    transform: translateY(-1px);
}

/* Category Status Cards (SWM, Dengue, Property) - Ultra Compact */
.status-cards-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.status-card-btn {
    flex: 1;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.status-card-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.status-card-inner {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    transition: all 0.15s ease;
}

.status-card-btn input[type="radio"]:checked + .status-card-inner {
    border-color: #0d62cc;
    background: #eff6ff;
    color: #0d62cc;
    box-shadow: 0 0 0 2px rgba(13, 98, 204, 0.15);
}

.status-card-btn.swm-btn input[type="radio"]:checked + .status-card-inner {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #15803d;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.status-card-btn.swm-btn .status-card-inner i {
    color: #16a34a;
    font-size: 16px !important;
}

.status-card-btn.dengue-btn input[type="radio"]:checked + .status-card-inner {
    border-color: #334155;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.15);
}

.status-card-btn.property-btn input[type="radio"]:checked + .status-card-inner {
    border-color: #334155;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.15);
}

/* Disabled Category Cards */
.status-card-btn.disabled,
.status-card-btn:has(input:disabled) {
    cursor: not-allowed !important;
    opacity: 0.42;
    filter: grayscale(0.5);
}

.status-card-btn.disabled *,
.status-card-btn:has(input:disabled) * {
    cursor: not-allowed !important;
}

.status-card-btn.disabled input,
.status-card-btn:has(input:disabled) input {
    pointer-events: none;
}

.status-card-btn.disabled .status-card-inner,
.status-card-btn:has(input:disabled) .status-card-inner {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

.status-card-btn.disabled .status-card-inner i,
.status-card-btn:has(input:disabled) .status-card-inner i {
    color: #94a3b8 !important;
    font-size: 16px !important;
}

/* Red Capture Photo Pill Button */
.btn-cam-red {
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 18px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
    transition: all 0.2s ease;
}

.btn-cam-red:hover {
    background: #dc2626;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
    transform: translateY(-1px);
}

/* Portion Row Layout - All in 1 Single Line (P1 - Wet, Dry, Sanitary, Special, Capture Photo) */
.portion-row-single {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 6px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    flex-wrap: nowrap; /* strictly 1 line */
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
}

.portion-row-single:hover {
    border-color: #94a3b8;
}

.portion-badge-pill {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-weight: 800;
    font-size: 11px;
    padding: 3px 5px;
    border-radius: 5px;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
    line-height: 1.1;
}

.portion-row-single .bin-checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 700;
    user-select: none;
    padding: 3px 4px;
    border-radius: 5px;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    height: 25px;
}

.portion-row-single .bin-checkbox-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portion-row-single .bin-checkbox-item input[type="checkbox"] {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    flex-shrink: 0;
}

.portion-cam-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.btn-portion-cam-inline {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #0f172a;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    transition: all 0.15s ease;
    height: 25px;
}

.btn-portion-cam-inline:hover {
    background: #0f172a;
    color: #ffffff;
}

.btn-portion-cam-inline.captured {
    background: #f0fdf4;
    color: #15803d;
    border-color: #16a34a;
}

.portion-cam-inline .portion-thumb-preview img {
    width: 23px;
    height: 23px;
    border-radius: 3px;
    object-fit: cover;
    border: 1.5px solid #16a34a;
    cursor: pointer;
    display: block;
}

/* Fallback Portion Cards Layout */
.portion-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 9px;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
}

.portion-card:hover {
    border-color: #94a3b8;
}

.portion-header {
    margin-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portion-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.1px;
}

.portion-content-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.portion-bins-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
}

.bin-checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    user-select: none;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.15s ease;
}

.bin-checkbox-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Custom Checkbox as Color Box */
.bin-checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    margin: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
}

.bin-checkbox-item input[type="checkbox"]::before {
    content: "\F26E"; /* Bootstrap icon check-lg */
    font-family: "bootstrap-icons";
    font-size: 10px;
    font-weight: 900;
    color: #ffffff;
    transform: scale(0);
    transition: transform 0.12s ease-in-out;
}

.bin-checkbox-item input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* 1. GREEN (Wet Waste) */
.bin-checkbox-item.bin-green,
.bin-checkbox-item[data-color="green"] {
    background-color: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}
.bin-checkbox-item.bin-green input[type="checkbox"],
.bin-checkbox-item[data-color="green"] input[type="checkbox"] {
    border: 2px solid #16a34a;
    background-color: #f0fdf4;
    border-radius: 4px;
}
.bin-checkbox-item.bin-green input[type="checkbox"]:checked,
.bin-checkbox-item[data-color="green"] input[type="checkbox"]:checked {
    background-color: #16a34a;
    border-color: #16a34a;
}
.bin-checkbox-item.bin-green:has(input:checked),
.bin-checkbox-item[data-color="green"]:has(input:checked),
.bin-checkbox-item.bin-green.bin-selected {
    background-color: #dcfce7;
    border-color: #16a34a;
    color: #14532d;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.15);
}

/* 2. BLUE (Dry Waste) */
.bin-checkbox-item.bin-blue,
.bin-checkbox-item[data-color="blue"] {
    background-color: #f0f9ff;
    border: 1.5px solid #7dd3fc;
    color: #0369a1;
}
.bin-checkbox-item.bin-blue input[type="checkbox"],
.bin-checkbox-item[data-color="blue"] input[type="checkbox"] {
    border: 2px solid #0284c7;
    background-color: #f0f9ff;
    border-radius: 4px;
}
.bin-checkbox-item.bin-blue input[type="checkbox"]:checked,
.bin-checkbox-item[data-color="blue"] input[type="checkbox"]:checked {
    background-color: #0284c7;
    border-color: #0284c7;
}
.bin-checkbox-item.bin-blue:has(input:checked),
.bin-checkbox-item[data-color="blue"]:has(input:checked),
.bin-checkbox-item.bin-blue.bin-selected {
    background-color: #e0f2fe;
    border-color: #0284c7;
    color: #075985;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.15);
}

/* 3. RED (Sanitary Waste) */
.bin-checkbox-item.bin-red,
.bin-checkbox-item[data-color="red"] {
    background-color: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
}
.bin-checkbox-item.bin-red input[type="checkbox"],
.bin-checkbox-item[data-color="red"] input[type="checkbox"] {
    border: 2px solid #dc2626;
    background-color: #fef2f2;
    border-radius: 4px;
}
.bin-checkbox-item.bin-red input[type="checkbox"]:checked,
.bin-checkbox-item[data-color="red"] input[type="checkbox"]:checked {
    background-color: #dc2626;
    border-color: #dc2626;
}
.bin-checkbox-item.bin-red:has(input:checked),
.bin-checkbox-item[data-color="red"]:has(input:checked),
.bin-checkbox-item.bin-red.bin-selected {
    background-color: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.15);
}

/* 4. BLACK (Special Waste) */
.bin-checkbox-item.bin-black,
.bin-checkbox-item[data-color="black"] {
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
}
.bin-checkbox-item.bin-black input[type="checkbox"],
.bin-checkbox-item[data-color="black"] input[type="checkbox"] {
    border: 2px solid #0f172a;
    background-color: #f8fafc;
    border-radius: 4px;
}
.bin-checkbox-item.bin-black input[type="checkbox"]:checked,
.bin-checkbox-item[data-color="black"] input[type="checkbox"]:checked {
    background-color: #0f172a;
    border-color: #0f172a;
}
.bin-checkbox-item.bin-black:has(input:checked),
.bin-checkbox-item[data-color="black"]:has(input:checked),
.bin-checkbox-item.bin-black.bin-selected {
    background-color: #f1f5f9;
    border-color: #0f172a;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
}

.portion-photo-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.btn-portion-cam {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #0f172a;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-portion-cam:hover {
    background: #0f172a;
    color: #ffffff;
}

.btn-portion-cam.captured {
    background: #f0fdf4;
    color: #15803d;
    border-color: #16a34a;
}

.portion-thumb-preview {
    display: flex;
    align-items: center;
    gap: 6px;
}

.portion-thumb-preview img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 1.5px solid #16a34a;
}

.portion-photo-badge {
    font-size: 10.5px;
    color: #15803d;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.portion-remarks-input {
    width: 100%;
    padding: 4px 8px;
    font-size: 11.5px;
    height: 28px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
    margin-top: 3px;
    font-family: inherit;
    color: #1e293b;
    outline: none;
}

.portion-remarks-input:focus {
    border-color: #0d62cc;
}

.btn-generate-qr, .btn-capture-photo {
    background-color: #0d62cc;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(13, 98, 204, 0.2);
    transition: all 0.2s;
}

.btn-generate-qr:hover, .btn-capture-photo:hover {
    background-color: #0b54b0;
    box-shadow: 0 4px 10px rgba(13, 98, 204, 0.3);
    transform: translateY(-1px);
}

.btn-submit-main {
    width: 100%;
    background: linear-gradient(90deg, #0d5db8 0%, #0d62cc 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13, 98, 204, 0.25);
    transition: all 0.2s;
}

.btn-submit-main:hover {
    background: linear-gradient(90deg, #0b54b0 0%, #094796 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(13, 98, 204, 0.35);
}

/* Location Status Banner */
.location-status {
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    display: none;
}

.location-status.success {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.location-status.error {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Alert Notification - Compact */
.alert-box {
    padding: 7px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Camera & Photo Capture Module - Compact Mobile Size */
.camera-container {
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-width: 260px;
    margin: 0 auto 6px auto;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cameraStream, #photoPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.btn-cam-action {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.btn-cam-action:hover {
    background: #1e293b;
}

.btn-cam-primary {
    background: #ef4444;
}

.btn-cam-primary:hover {
    background: #dc2626;
}

/* Building & Owner Details Grid - 2-Column Mobile Micro-Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    background: #f8fafc;
    border-radius: 6px;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 6px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.detail-label {
    font-size: 9.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.detail-value {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

.qr-badge-pill {
    background: #e0f2fe;
    color: #0284c7;
    padding: 2px 7px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #bae6fd;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid #bbf7d0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .app-container {
        padding: 0 4px;
        margin: 2px auto;
    }
    .header-banner {
        padding: 6px 10px;
    }
    .form-card {
        padding: 8px 10px;
    }
}
