html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #206493;
}
.home-body {
    background-color: #cce7ff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 15px;
    align-items: center;
}
.btn-main {
    padding: 12px 20px;
    background: #1e88e5;
    color: white;
    text-decoration: none;
    font-size: 15px; 
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(30, 136, 229, 0.3);
    transition: all 0.3s ease;
}
.btn-main:hover {
    background: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(30, 136, 229, 0.4);
}
.btn-secondary {
    color: #0b5394;
    text-decoration: none;
    font-weight: 600;
    padding: 16px 25px;
    transition: 0.3s;
}
.btn-secondary:hover {color: #1565c0;}

/* Floating Card Animation */
.floating-card {
    position: absolute;
    right: 85px;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}
.dot {
    height: 10px;
    width: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.fade-in {animation: fadeIn 0.8s ease-out forwards;}
.fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= LOGIN / REGISTER ================= */
.form-body {
    width: 100%;
    min-height: 100vh;
    background-image: url("../static/image/bgsignin.jpg");
    background-size:  100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #206493;
    display: flex;
    justify-content: center;
    align-items: center;
}
.form-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.form-box {
    width: 380px;
    background: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}
.form-box h2 {
    color: #0b5394;
    margin-bottom: 10px;
    font-size: 35px;
}
.form-box p {
    color: #444;
    margin-bottom: 15px;
}
.form-box input {
    width: 100%;
    padding: 13px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 15px;
}
.form-btn {width: 60%;}
.bottom-text {
    margin-top: 12px;
    font-size: 14px;
}
.bottom-text a {
    color: #1565c0;
    text-decoration: none;
}
.message-box {
    background: #ffdede;
    color: #b30000;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}
.forgot-password {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 15px;
}
.forgot-password a {
    text-decoration: none;
    color: #1565c0;
    font-size: 14px;
}
.forgot-password a:hover {
    text-decoration: underline;
}
.password-wrapper{
    position:relative;
    width:100%;
    margin-bottom:15px;
}
.password-wrapper input{
    width:100%;
    padding:13px;
    padding-right:45px;
    box-sizing:border-box;
}
.toggle-password{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    width:22px;
    height:22px;
    cursor:pointer;
}

/* ================= DASHBOARD ================= */
.dashboard-body {
    background: #eef7ff;
    min-height: 100vh;
}
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ================= SIDEBAR NEW ================= */
.sidebar {
    width: 250px;
    background: linear-gradient(to bottom, #1565c0, #0d47a1);
    color: white;
    padding: 30px 22px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 8px 0 20px rgba(0,0,0,0.08);
}
.sidebar-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}
.sidebar-logo-circle {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
}
.sidebar-logo-text h2 {
    margin: 0;
    font-size: 28px;
    color: white;
}
.sidebar-logo-text p {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}
.user-greeting-card {
    background: rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.12);
}
.greeting-label {
    margin: 0 0 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.user-greeting-card h3 {
    margin: 0;
    font-size: 26px;
    color: white;
}
.sidebar-menu {margin-top: 10px;}
.sidebar-menu a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s ease;
}
.sidebar-menu a:hover {
    background: rgba(255,255,255,0.22);
    transform: translateX(4px);
}
.sidebar-menu .active-link {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.18);
}

/* Main content scroll sebelah kanan ja */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 10px 35px 35px 35px;
    min-height: 100vh;
}
.main-content h1 {
    color: #0b1f33;
    margin-bottom: 8px;
}
.main-content p {color: #444;}

/* ================= TOP HEADER ================= */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
.top-left {flex: 1;}
.main-subtext {
    color: #555;
    margin: 0;
    font-size: 16px;
}

/* ================= tracking section ================= */
.camera-box {
    margin-top: 15px;
    height: 470px;
    background: white;
    border: 2px dashed #1e88e5;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1565c0;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
}
.camera-loader {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.92);
    z-index: 10;
    border-radius: 20px;
}
.camera-loader p {
    margin-top: 15px;
    color: #1565c0;
    font-weight: 600;
    font-size: 16px;
}
.loader-spinner {
    width: 55px;
    height: 55px;
    border: 5px solid #dbeafe;
    border-top: 5px solid #1e88e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}
#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 20px;
    display: none;
    transform: scaleX(-1);
}
#cameraPlaceholder {
    width: 100%;
    height: 100%;
}
.camera-placeholder-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #f8fbff, #edf5ff);
    border: 2px dashed #b7d4f6;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #1d3557;
}
.camera-placeholder-box h3 {
    margin-bottom: 18px;
    font-size: 24px;
    color: #1565c0;
}
.camera-guidelines {
    margin: 0;
    padding-left: 20px;
}
.camera-guidelines li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #4b5d73;
}

.tracking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 30px;
    align-items: start;
    width: 100%;
}
.camera-side {
    width: 100%;
    min-width: 0;
}
.info-side {
    width: 100%;
    margin-top: 10px;
}
.info-side .info-card {
    width: 100%;
    box-sizing: border-box;
}

.guide-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.guide-popup-card {
    width: 470px;
    max-width: 82%;
    background: white;
    border-radius: 22px;
    padding: 18px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    animation: popupScale 0.25s ease;
}
.guide-popup-card h2 {
    color: #1565c0;
    margin-bottom: 15px;
}
.guide-popup-card img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 16px;
}
.close-guide {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
    color: #555;
}
.close-guide:hover {color: red;}
.camera-guide-link {
    color: #1e88e5;
    cursor: pointer;
    font-weight: 600;
    margin-left: 8px;
}
.camera-guide-link:hover {text-decoration: underline;}
.guide-note {
    margin-top: 14px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

@keyframes popupScale {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================= BUTTON Tracking ================= */
.btn-main:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-main:disabled:hover {
    transform: none;
}
.button-row {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.center-buttons {justify-content: center;}
.pause-btn {background: #f59e0b;}
.pause-btn:hover {background: #d97706;}
.stop-btn {background: #ef4444;}
.stop-btn:hover {background: #dc2626;}
.resume-btn {background: #10b981;}
.resume-btn:hover {background: #059669;}
.done-btn {background: #16a34a;}
.done-btn:hover {background: #15803d;}
.small-btn {
    padding: 10px 18px;
    font-size: 14px;
}

/* ================= INFO BOX ================= */
.info-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
}
.info-card {
    background: white;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.info-card h3 {
    color: #0b5394;
    margin-bottom: 10px;
}
.big-text {
    font-size: 23px;
    font-weight: bold;
}

/* ================= SECTION HEADER ================= */
.section-header {margin-bottom: 15px;}
.section-header h2 {
    color: #0b5394;
    margin-bottom: 8px;
}
.section-header p {color: #555;}

/* ================= STRETCH POPUP ================= */
.stretch-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.stretch-popup-card {
    width: 420px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.stretch-popup-card h2 {
    color: #0b5394;
    margin-bottom: 15px;
}
.stretch-popup-card p {
    color: #444;
    line-height: 1.7;
}
.stretch-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stop-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cancel-btn {
    background: #9ca3af;
    box-shadow: none;
}
.cancel-btn:hover {
    background: #6b7280;
    transform: translateY(-2px);
}
.confirm-stop-btn {
    background: #dc2626;
    box-shadow: none;
}
.confirm-stop-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* ================= STRETCH VIDEO SECTION ================= */
.stretch-section {
    margin-top: 30px;
    background: white;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.stretch-section h2 {
    color: #0b5394;
    margin-bottom: 10px;
}
.video-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.video-card {
    background: #eef7ff;
    border-radius: 16px;
    padding: 15px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.video-card h3 {
    margin-bottom: 10px;
    color: #1565c0;
}
.video-card video {
    width: 100%;
    border-radius: 12px;
}

/* ================= REPORT SECTION ================= */
.report-section {
    margin-top: 30px;
    background: linear-gradient(to bottom right, #ffffff, #f7fbff);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.08);
    border: 1px solid #dbeafe;
}
.report-filter {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 18px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 18px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.report-filter label {
    font-weight: 600;
    color: #0b5394;
    font-size: 14px;
}
.report-filter input {
    padding: 12px 14px;
    border: 1px solid #bfdcff;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    min-width: 220px;
    outline: none;
    transition: 0.3s ease;
}
.report-filter input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
}
.report-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}
.report-card {
    background: white;
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 1px solid #e6f0ff;
    transition: 0.3s ease;
}
.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.report-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.report-card h3 {
    margin: 0;
    font-size: 17px;
    color: #0b5394;
}
.report-card p {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    color: #0b1f33;
}
.report-card small {
    color: #6b7a90;
    font-size: 13px;
    line-height: 1.5;
}
.report-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}
.good-card .report-icon {
    background: #e8f9ee;
    color: #16a34a;
}
.bad-card .report-icon {
    background: #fdecec;
    color: #dc2626;
}
.active-card .report-icon {
    background: #eef4ff;
    color: #2563eb;
}
.graph-box {
    background: linear-gradient(to bottom right, #f8fbff, #f2f8ff);
    padding: 24px;
    border-radius: 22px;
    border: 1px solid #d6eaff;
}
.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.graph-box h3 {
    color: #0b5394;
    margin: 0 0 8px;
    font-size: 28px;
}
.graph-desc {
    margin: 0;
    color: #4f647d;
    line-height: 1.7;
}
.graph-badge {
    background: #e8f2ff;
    color: #1565c0;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.graph-note {
    margin-top: 14px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #ffffff;
    border-left: 5px solid #1e88e5;
    border-radius: 12px;
    color: #4b5d73;
    line-height: 1.7;
    font-size: 14px;
}
.graph-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.summary-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    border: 1px solid #e4efff;
}
.summary-card h4 {
    margin: 0 0 8px;
    color: #1565c0;
    font-size: 15px;
    font-weight: 600;
}
.summary-card p {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0b1f33;
}
.graph-box-inner {
    margin-top: 10px;
    background: white;
    border-radius: 18px;
    padding: 20px;
    min-height: 340px;
    box-shadow: inset 0 0 0 1px #edf4ff;
}
.analysis-section{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:15px;
}
.analysis-card{
    background:#f8fbff;
    border:1px solid #dbe7f5;
    border-radius:12px;
    padding:15px 20px;
}
.analysis-card h4{
    margin-bottom:8px;
    color:#1565c0;
}
.analysis-card p{
    line-height:1.6;
    color:#444;
}
/* ================= TOAST ================= */
.toast-box {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
}
.toast {
    min-width: 280px;
    max-width: 360px;
    background: white;
    color: #333;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-left: 6px solid #ef4444;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    animation: slideIn 0.35s ease;
    font-size: 14px;
    line-height: 1.5;
}
.toast.good {
    border-left-color: #16a34a;
}
.toast.warning {
    border-left-color: #ef4444;
}
.toast.reminder {
    border-left-color: #f59e0b;
}
.toast-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #0b1f33;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= HOME HEADER indexPage ================= */
.home-header {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-circle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.25);
}
.logo h2 {
    color: #0b1f33;
    font-size: 24px;
    margin: 0;
}
.home-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}
.home-nav a {
    text-decoration: none;
    color: #0b1f33;
    font-weight: 500;
    transition: 0.3s ease;
}
.home-nav a:hover {color: #1e88e5;}
.nav-btn {
    background: #1e88e5;
    color: white !important;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(30, 136, 229, 0.25);
}
.nav-btn:hover {background: #1565c0;}

/* ================= HERO SECTION ================= */
.hero-section {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 90px;
    padding-bottom: 50px;
}
.hero-left {width: 55%;}
.hero-left h1 {
    font-size: 55px;
    color: #0b1f33;
    line-height: 1.15;
    margin-bottom: 25px;
}
.hero-left h1 span {color: #1e88e5;}
.hero-left p {
    font-size: 16px;
    line-height: 1.9;
    color: #556b82;
    max-width: 620px;
    margin-bottom: 35px;
}
.hero-right {
    width: 45%;
    position: relative;
}
.hero-right img {
    width: 100%;
    border-radius: 35px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}
.top-card {
    top: -15px;
    right: -20px;
    bottom: auto;
}
.bottom-card {
    bottom: -30px;
    left: 30px;
    right: auto;
    background: #1e88e5;
    color: white;
}

/* ================= HERO STATS ================= */
.hero-stats {
    display: flex;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.stat-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 5px 20px;
    min-width: 130px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.stat-card h3 {
    color: #1e88e5;
    font-size: 22px;
    margin: 0 0 5px;
}
.stat-card p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* ================= FEATURES ================= */
.features-section {
    padding: 10px 8% 60px 8%;
    background: #ffffff;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 42px;
    color: #0b1f33;
    margin-bottom: 12px;
}
.section-title p {
    color: #666;
    font-size: 17px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}
.feature-card {
    background: #f8fbff;
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
.feature-card:hover {transform: translateY(-8px);}
.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.feature-card h3 {
    color: #0b5394;
    margin-bottom: 12px;
}
.feature-card p {
    color: #555;
    line-height: 1.7;
}

/* ================= ABOUT ================= */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 10px 8% 60px 8%;
    background: linear-gradient(to bottom, #eef7ff, #dceeff);
}
.about-left {width: 45%;}
.about-left img {
    width: 110%;
    margin-left: -50px;
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.about-right {width: 55%;}
.about-right h2 {
    font-size: 42px;
    color: #0b1f33;
    margin-bottom: 20px;
}
.about-right p {
    font-size: 17px;
    line-height: 1.9;
    color: #556b82;
    margin-bottom: 20px;
}

/* ================= FOOTER ================= */
.home-footer {
    background: #0b1f33;
    color: white;
    text-align: center;
    padding: 15px;
}
.home-footer p {
    margin: 0;
    font-size: 12px;
}

/* ================= SCROLL TO TOP BUTTON ================= */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(30, 136, 229, 0.35);
    z-index: 999;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 30px rgba(30, 136, 229, 0.45);
}

/* ================= RESPONSIVE INDEX, AUTHENTICATION Page (minimize page)================= */
@media (max-width: 768px) {
    .home-header {
        width:95%;
        display:flex;
        justify-content:space-between;
        align-items:center;
    }
    .home-nav {
        display:flex;
        align-items:center;
        gap:8px;
        flex-wrap:nowrap;
    }
    .home-nav a{font-size:14px;}
    .logo {gap: 8px;}
    .logo-circle {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
    .logo h2 {font-size: 15px;}
    .nav-btn {padding: 8px 16px;}
    .hero-section{
        flex-direction: column;
        text-align: center;
        padding-top: 110px;
        gap: 40px;
    }
    .hero-right{
        width:80%;
        max-width:320px;
        margin:auto;
    }
    .hero-right img{
        width:100%;
    }
    .hero-left,
    .hero-right,
    .about-left,
    .about-right {
        width: 100%;
    }
    .hero-left h1{
        font-size:32px;
        line-height:1.2;
    }
    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-stats{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:15px;
        justify-content:center;
    }
    .stat-card:last-child{
        grid-column:span 2;
    }
    .stat-card{
        min-width:50px;     
        padding:8px 10px;   
    }
    .cta-group {justify-content: center;}
    .about-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .about-left {
        display:flex;
        justify-content:center;
        align-items:center;
        padding:20px 0;
    }
    .about-left img{
        width:100%;
        max-width:320px;
        display:block;
        margin:0 auto;
    }
    .image-wrapper{
        position:relative;
        width:100%;
        display:flex;
        justify-content:center;
    }
    .top-card {
        position: absolute;
        top: -10px;
        right: -20px;
        bottom: auto;
    }
    .bottom-card {
        position: absolute;
        bottom: -30px;
        left: 40px;
        right: auto;
    }
    .form-container{
        padding:20px;
        box-sizing:border-box;
    }
    .form-box{
        width:100%;
        max-width:340px;
        padding:30px 25px;
        border-radius:20px;
        box-sizing:border-box;
    }
}

/* ================= RESPONSIVE HOMEPAGE ================= */
@media (max-width: 700px) {
    .dashboard-container{display:block;}
    .sidebar{
        position:relative;
        width:100%;
        height:auto;
        padding:20px 30px;
        box-sizing:border-box;
        overflow:hidden;
        display:flex;
        flex-direction:column;
    }
    .sidebar-header{
        display:flex;
        justify-content:space-between;
        align-items:flex-start;
        width:100%;
        margin-bottom:20px;
    }
    .sidebar-logo-wrapper{
        display:flex;
        align-items:center;
        gap:5px;
        margin:0;
    }
    .sidebar-logo-circle{
        width:35px;
        height:35px;
        font-size:16px;
    }
    .sidebar-logo-text h2{
        font-size:16px;
    }
    .user-greeting-card{
        background:none;
        border:none;
        padding:8px 0 0 0;
        margin:0;
        display:flex;
        flex-direction:column;
        align-items:flex-end;
        justify-content:center;
    }
    .user-greeting-card h3{
        margin:0;
        font-size:18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sidebar-menu{
        width:100%;
        display:flex;
        justify-content:space-between;
        gap:8px;
    }
    .sidebar-menu a{
        flex:1;
        min-width:0;
        margin:0;
        display:flex;
        justify-content:center;
        align-items:center;
        padding:0 10px;
        height:60px;
        text-align:center;
        font-size:12px;
        line-height:1.2;
        box-sizing:border-box;
    }
    .camera-box{
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }
    .camera-placeholder-box{
        width:100%;
        box-sizing:border-box;
        padding:10px;
    }
    .camera-placeholder-box h3{font-size:20px;}
    .camera-guidelines li{
        font-size:13px;
        line-height:1.6;
    }
    .main-content{
        margin-left:0;
        padding:20px 15px;
    }
    .tracking-layout{grid-template-columns:1fr;}
    .info-boxes{
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:8px;
    }
    .info-card{min-width:0;}
    .button-row{
        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:8px;
        width:100%;
    }
    .button-row .btn-main{
        width:100%;
        min-width:0;
        padding:10px 0;
        font-size:14px;
    }
    .info-card p {font-size:20px;}
    .video-grid{justify-content:center;}
    .report-cards{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }
    .report-card{
        min-width:0;
        padding:14px;
    }
    .report-card h3{font-size:14px;}
    .report-card p{font-size:18px;}
    .report-icon{
        width:32px;
        height:32px;
        font-size:16px;
    }
    .report-filter{
        flex-direction: column;
        align-items: stretch;
    }
    .report-filter input{
        width:100%;
        min-width:0;
        box-sizing:border-box;
    }
    .report-filter .btn-main{width:100%;}
    .graph-header{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }

    .graph-header > div{
        width:100%;
        min-width:0;
    }
    .graph-box h3{
        font-size:18px;
        line-height:1.3;
        margin-bottom:10px;
        word-break:break-word;
        overflow-wrap:break-word;
    }
    .graph-desc{
        font-size:14px;
        line-height:1.6;
        word-break:break-word;
    }
    .graph-badge{
        width:100%;
        box-sizing:border-box;
        text-align:center;
        white-space:normal;
        word-break:break-word;
        font-size:12px;
        padding:8px 10px;
    }
    .graph-summary{
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:8px;
    }
    .summary-card{
        min-width:0;
        padding:10px 6px;
        box-sizing:border-box;
    }
    .summary-card h4{
        font-size:13px;
        line-height:1.2;
        margin-bottom:6px;
        word-break:break-word;
    }
    .summary-card p{
        font-size:14px;
        word-break:break-word;
    }
}

.scroll-top-btn {
    display: none;
}
@media (max-width: 700px) {
    .scroll-top-btn.show {
        display: flex;
    }
}

/* ============CUSTOM POPUP================= */
.custom-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup-content {
    width: 360px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 22px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    animation: popupFade 0.3s ease;
}
.popup-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    font-size: 34px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup-icon.success {
    background: #e8f9ee;
    color: #1f9d55;
}
.popup-icon.error {
    background: #fdecec;
    color: #d93025;
}
.popup-content h3 {
    margin: 10px 0 8px;
    font-size: 24px;
    color: #1d3557;
}
.popup-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 22px;
    line-height: 1.5;
}
.popup-btn {
    background: linear-gradient(135deg, #1f6fd1, #174ea6);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 8px 18px rgba(31, 111, 209, 0.25);
}
.popup-btn:hover {transform: translateY(-2px);}
@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@media (max-width:768px){
    .popup-content{
        width:280px;
        max-width:280px;
    }
}

.input-group {margin-bottom: 16px;}
.password-rules {
    display: none;
    margin-top: 8px;
    padding: 10px 14px;
    text-align: left;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
}
.password-rules p {
    font-size: 13px;
    margin: 6px 0;
    font-weight: 600;
    transition: 0.3s ease;
}
.password-rules p.valid {color: #16a34a;}
.password-rules p.invalid {color: #dc2626;}