@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');
:root{--primary:#0d6efd;--navy:#0b1f3a;--soft:#f4f7fb;--card:#fff;--border:#e6ebf2}
*{font-family:'Sarabun',sans-serif}body{background:var(--soft);color:#1f2937}.app-header{background:linear-gradient(135deg,#0b3b75,#0d6efd);color:#fff}.brand-logo{width:52px;height:52px;object-fit:contain;border-radius:14px;background:#fff;padding:5px}.glass-card,.card{border:1px solid var(--border);border-radius:18px;box-shadow:0 8px 28px rgba(15,23,42,.06)}.form-control,.form-select{border-radius:12px;min-height:44px}.btn{border-radius:12px}.room-badge{background:#e7f1ff;color:#0b5ed7;border-radius:999px;padding:.45rem .8rem;font-weight:600}.timeline{position:relative;padding-left:28px}.timeline:before{content:'';position:absolute;left:8px;top:0;bottom:0;width:2px;background:#dce6f4}.timeline-item{position:relative;margin-bottom:18px}.timeline-item:before{content:'';position:absolute;left:-24px;top:5px;width:12px;height:12px;border-radius:50%;background:#0d6efd;box-shadow:0 0 0 4px #dbeafe}.stat-card{min-height:120px}.sidebar{background:#0b1f3a;min-height:100vh;color:#fff}.sidebar a{color:#d9e4f0;text-decoration:none;display:block;padding:.75rem 1rem;border-radius:10px;margin:.2rem 0}.sidebar a:hover{background:#16365f;color:#fff}.preview-img{width:100%;height:160px;object-fit:cover;border-radius:14px;border:1px solid #dfe7ef}.qr-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;text-align:center}.table{vertical-align:middle}.priority-critical{color:#b91c1c;font-weight:700}.priority-high{color:#c2410c;font-weight:600}

.brand-logo-wrap{width:58px;height:58px;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center;padding:6px;box-shadow:0 5px 18px rgba(0,0,0,.10);overflow:hidden}.brand-logo{width:100%;height:100%;object-fit:contain;border-radius:10px;background:#fff;padding:0}.admin-brand-logo{width:38px;height:38px;object-fit:contain;border-radius:10px;background:#fff;padding:3px}

/* QR room card v9 */
.room-qr-card{background:#fff;border:2px solid #d5e4f6;border-radius:24px;padding:20px;text-align:center;box-shadow:0 10px 30px rgba(15,67,128,.08);position:relative;overflow:hidden}
.room-qr-card:before{content:"";position:absolute;inset:7px;border:1px solid #edf3fa;border-radius:18px;pointer-events:none}
.room-qr-card__header,.room-qr-frame,.room-qr-caption,.room-qr-code-text,.room-qr-card .small,.room-qr-card .d-flex{position:relative;z-index:1}
.room-qr-system{font-size:.9rem;font-weight:600;color:#54708f;margin-bottom:3px}
.room-qr-room{font-size:1.45rem;font-weight:700;color:#123d72;line-height:1.25}
.room-qr-location{font-size:.88rem;color:#7b8998;margin-top:4px}
.room-qr-frame{display:inline-flex;align-items:center;justify-content:center;margin:17px auto 12px;padding:13px;border:3px solid #174f91;border-radius:18px;background:#fff;box-shadow:0 8px 20px rgba(23,79,145,.10)}
.room-qr-code{width:190px;height:190px;display:flex;align-items:center;justify-content:center}
.room-qr-code img,.room-qr-code canvas{max-width:190px!important;max-height:190px!important;display:block}
.room-qr-caption{font-weight:600;color:#174f91}
.room-qr-code-text{font-size:.78rem;letter-spacing:.08em;color:#8290a0;margin-top:3px}

/* User home tabs + optional photo upload v11 */
.app-home-wrap{max-width:980px}
.repair-tabs{background:#eef4fb;border-radius:16px;padding:6px;gap:6px}
.repair-tabs .nav-link{border-radius:12px;color:#49627d;font-weight:600;padding:.85rem .75rem}
.repair-tabs .nav-link.active{background:#0d6efd;color:#fff;box-shadow:0 6px 16px rgba(13,110,253,.22)}
.photo-upload-card{height:100%;border:1.5px dashed #c7d8eb;border-radius:18px;padding:18px;text-align:center;background:#f9fbfe;transition:.2s ease}
.photo-upload-card:hover{border-color:#7aa9df;background:#f5f9ff}
.photo-upload-icon{width:52px;height:52px;margin:0 auto 10px;border-radius:16px;background:#e7f1ff;color:#0d6efd;display:flex;align-items:center;justify-content:center;font-size:1.35rem}
.photo-preview-wrap{position:relative}
.photo-preview-wrap .preview-img{height:190px}
.photo-remove-btn{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;padding:0;box-shadow:0 3px 10px rgba(0,0,0,.15)}
.line-camera-note{display:flex;align-items:flex-start;background:#f2fff5;border:1px solid #ccefd6;color:#245f34;border-radius:14px;padding:12px 14px;font-size:.9rem}
.line-camera-note .fa-line{font-size:1.3rem;color:#06c755;margin-top:1px}
.track-home-panel{text-align:center;padding:30px 18px 36px;background:linear-gradient(180deg,#f8fbff,#fff);border:1px solid #e6eef8;border-radius:18px}
.track-home-icon{width:68px;height:68px;border-radius:20px;margin:0 auto;display:flex;align-items:center;justify-content:center;background:#e7f1ff;color:#0d6efd;font-size:1.7rem}
@media(max-width:575.98px){.repair-tabs .nav-link{font-size:.92rem;padding:.75rem .4rem}.photo-upload-card{padding:15px}.track-home-panel{padding:24px 14px 28px}}


/* Optional issue video v12 */
.video-upload-card{border:1.5px dashed #c7d8eb;border-radius:18px;padding:18px;background:#f9fbfe}
.video-upload-icon{width:52px;height:52px;border-radius:16px;background:#e7f1ff;color:#0d6efd;display:flex;align-items:center;justify-content:center;font-size:1.3rem;margin:0 auto}
.video-action-wrap{max-width:230px}
.video-preview-wrap{border-top:1px solid #e5edf6;padding-top:15px}
.video-preview{display:block;width:100%;max-height:420px;border-radius:14px;background:#111;outline:none}
@media(max-width:767.98px){.video-action-wrap{max-width:none}.video-upload-card{padding:15px}.video-preview{max-height:300px}}

/* Camera/video capture v13 */
.photo-upload-card .btn,.video-upload-card .btn{min-height:44px}
.line-camera-note .btn{white-space:nowrap}
@media(max-width:575.98px){
  .photo-upload-card .btn{font-size:.9rem;padding-left:.35rem;padding-right:.35rem}
  .line-camera-note .btn{width:100%}
}
