/* Header Logout Button Theme Match */
#logoutHeaderBtn button {
    background-color: #0096FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0px 2px 8px rgba(0,150,255,0.07);
    text-transform: uppercase;
    margin-left: 10px;
}
#logoutHeaderBtn button:hover {
    background-color: #004f87;
    color: #fff;
}
/* Header container */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  z-index: 4000;
}

/* Sidebar toggle button (left) */
.menu-btn {
  background: #0080ff;
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.menu-btn:hover { background: #004f87; }

/* Branding centered */
#branding {
  display: flex;
  float: left;
  align-items: center;
}
#branding .logo {
    width: 80px;
    height: auto;
}
#branding h1 {
    margin: 0;
    font-size: 2.1em;
    color: #0096FF;
    letter-spacing: 1px;
}

/* Sidebar */
.sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background: #fff;
        box-shadow: 4px 0 12px rgba(0,0,0,0.1);
        padding-top: 40px;
        transition: right 0.3s ease;
        z-index: 3000;
}
.sidebar.active { right: 0; }
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.sidebar ul li {
    border-bottom: 1px solid #eee;
    text-align: center;
    width: 100%;
}
.sidebar ul li a {
    display: block;
    padding: 18px 0;
    color: #0096FF;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.15em;
}
.sidebar ul li a:hover { background: #0096FF; color: #fff; }

/* Sidebar profile section */
.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 10px 18px 10px;
    border-bottom: 1px solid #e5e5e5;
    background: #f9f9f9;
}
.sidebar-profile-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #0096FF;
    box-shadow: 0 2px 12px rgba(0,150,255,0.12);
}
#sidebarUsername { font-size: 1.1em; font-weight: 600; color: #333; }
#sidebarEmail {
    font-size: 1em;
    color: #666;
    margin-top: 2px;
    margin-bottom: 2px;
    word-break: break-all;
    text-align: center;
}

/* Logout button style */
.logout-btn {
  width: 80%;
  color: #0096FF;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  margin: 15px auto;
  display: block;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.logout-btn:hover {
    background: #0096FF;
    color: #fff;
}

/* Push page content */
body.sidebar-open { overflow-x: hidden; margin-right: 250px; transition: margin-left 0.3s; }


/* ADMIN DASHBOARD CONTROLS */
.admin-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.admin-controls label {
    font-weight: 500;
    color: #333;
    margin-right: 6px;
}
.status-select {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #0096FF;
    background: #eaf6ff;
    color: #0096FF;
    font-weight: 600;
    font-size: 1em;
    outline: none;
    transition: border 0.2s;
}
.status-select:focus {
    border: 2px solid #005fa3;
}
.accept-btn, .reject-btn {
    padding: 6px 18px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.accept-btn {
    background: #2ecc40;
    color: #fff;
}
.accept-btn:hover {
    background: #27ae38;
}
.reject-btn {
    background: #ff4136;
    color: #fff;
}
.reject-btn:hover {
    background: #c8231a;
}

/* Admin dashboard filter controls */
.admin-filters {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    align-items: center;
}
.admin-filters select {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #0096FF;
    background: #f4f8fc;
    color: #0096FF;
    font-weight: 500;
    font-size: 1em;
    outline: none;
}
.admin-filters label {
    font-weight: 500;
    color: #333;
}
.profile-menu {
    position: relative;
    cursor: pointer;
}
.profile-menu .dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 160px;
    padding: 8px 0;
    z-index: 1000;
}
.profile-menu .dropdown.show {
    display: block;
}
/* DASHBOARD STYLES */
.dashboard-container {
    max-width: 950px;
    margin: 40px auto 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 6px 18px rgba(0,0,0,0.07);
    padding: 32px 24px 32px 24px;
}
.dashboard-title {
    color: #0096FF;
    font-size: 2rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.issues-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.issue-card {
    background: #f4f8fc;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0,150,255,0.07);
    padding: 22px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
    position: relative;
    border-left: 6px solid #0096FF;
}
.issue-card.accepted { border-left-color: #2ecc40; border: 2px solid #2ecc40; background: #ecfbf0; }
.issue-card.rejected { border-left-color: #ff4136; border: 2px solid #ff4136; background: #fff1f0; }
.issue-card .remark { color: #a61b12; font-weight: 600; }
.issue-card h3 {
    margin: 0 0 6px 0;
    color: #0096FF;
    font-size: 1.2em;
    font-weight: 700;
}
.issue-card p {
    margin: 0 0 4px 0;
    color: #222;
    font-size: 1em;
}
.issue-card .status {
    font-weight: bold;
    color: #fff;
    background: #0096FF;
    border-radius: 6px;
    padding: 2px 12px;
    font-size: 0.95em;
    display: inline-block;
    margin-top: 8px;
}
.issue-card .date {
    color: #888;
    font-size: 0.95em;
    margin-top: 2px;
}
@media (max-width: 600px) {
    .dashboard-container {
        padding: 10px 2vw 18px 2vw;
    }
    .dashboard-title {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    .issues-list {
        gap: 14px;
    }
    .issue-card {
        padding: 12px 6px 10px 10px;
    }
}
.submit-issue-btn {
    margin-top: 24px;
    margin-bottom: 0;
    width: 100%;
    font-size: 1.1em;
}
.camera-location-group #message {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}
.camera-location-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.photo-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f4f8fc;
    border-radius: 10px;
    padding: 10px 0 18px 0;
    box-shadow: 0px 2px 8px rgba(0,150,255,0.07);
    margin-bottom: 18px;
}
.photo-block .photo-canvas,
.photo-block .photo-video,
.photo-block .photo-preview {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 0;
    display: none;
}
.photo-block .photo-preview {
    display: none;
    margin-top: 10px;
}
.photo-block .photo-video {
    background: #222;
    margin-top: 0;
}
.photo-block .btn {
    margin-top: 10px;
    width: 100%;
}
.photo-block .show {
    display: block !important;
}
.camera-section video {
    display: none;
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    background: #222;
    margin-bottom: 10px;
}
.location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    background: #0096FF;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    justify-content: center;
    transition: background 0.2s;
}
.location-btn:hover {
    background: #004f87;
}
.location-display {
    display: block;
    margin-top: 4px;
    color: #555;
    font-size: 15px;
    min-height: 20px;
    word-break: break-all;
}
.photo-canvas {
    display: none;
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    margin-top: 10px;
}
.photo-preview {
    display: none;
    margin-top: 10px;
    max-width: 100%;
    border-radius: 8px;
}
.form-group {
    margin-bottom: 15px;
}
.report-container select {
    width: 95%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 0;
}
.report-container select:focus {
    border-color: #0096FF;
    outline: none;
}
/* LANDSCAPE REPORT FORM LAYOUT */
.report-container.landscape {
    max-width: 900px;
    padding: 40px 30px 30px 30px;
}
/* Responsive flex for report form and camera/location */
.report-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
}
.report-container form {
    flex: 1 1 340px;
    max-width: 380px;
    text-align: left;
    min-width: 0;
}
.camera-location-group {
    flex: 1 1 260px;
    max-width: 320px;
    min-width: 0;
}
.photo-block, .location-section {
    width: 100%;
    box-sizing: border-box;
}
.camera-section video {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    background: #222;
    margin-bottom: 10px;
}
.camera-section button {
    width: 100%;
    margin-top: 8px;
}
.camera-section img {
    margin-top: 10px;
}
.location-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.location-row input {
    flex: 1 1 auto;
    margin-bottom: 0;
}
.location-row button {
    background: #0096FF;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
    transition: background 0.2s;
}
.location-row button:hover {
    background: #004f87;
}
@media (max-width: 900px) {
    .report-container.landscape {
        max-width: 98vw;
        padding: 20px 5px;
    }
    .report-flex {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .report-container form, .camera-location-group {
        max-width: 100%;
        width: 100%;
    }
    .photo-block, .location-section {
        max-width: 100%;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .report-container.landscape {
        padding: 10px 0 20px 0;
        margin: 20px 0 10px 0;
    }
    .report-flex {
        gap: 12px;
    }
    .report-container h2 {
        font-size: 20px;
    }
    .photo-block .photo-canvas,
    .photo-block .photo-video,
    .photo-block .photo-preview {
        max-width: 100vw;
        width: 100%;
    }
    .photo-block {
        padding: 6px 0 10px 0;
    }
    .location-section {
        padding: 8px 2px 8px 2px;
    }
    .report-container form {
        padding: 0 8px;
    }
}
/* REPORT FORM CARD */
.report-container {
    max-width: 450px;
    margin: 60px auto 40px auto;
    background-color: white;
    padding: 40px 30px 30px 30px;
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.report-container h2 {
    margin-bottom: 10px;
    color: #0096FF;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.report-description {
    color: #555;
    margin-bottom: 25px;
    font-size: 16px;
}

.report-container input,
.report-container textarea {
    width: 90%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    resize: none;
}

.report-container input:focus,
.report-container textarea:focus {
    border-color: #0096FF;
    outline: none;
}

.report-container .btn {
    width: 100%;
    margin-top: 10px;
}

.report-container #message {
    margin-top: 10px;
    font-weight: bold;
}
/* GLOBAL STYLES */
body {
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Center the sequential report form layout */
.report-container form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}
.report-container .camera-location-group,
.report-container .location-section {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.report-container .photo-block,
.report-container .location-section {
    align-items: center;
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.button_1, .btn {
    background-color: #0096FF;
    border: 0;
    color: white;
    height: 45px;
    font-weight: bold;
    border-radius: 8px;
    padding: 0 30px;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
    line-height: 45px;
    text-align: center;
    box-shadow: 0px 2px 8px rgba(0,150,255,0.07);
    letter-spacing: 0.5px;
    transition: background 0.2s, box-shadow 0.2s;
}

.button_1:hover, .btn:hover {
    background-color: #004f87;
    box-shadow: 0px 4px 16px rgba(0,150,255,0.13);
}

/* Profile dropdown visibility */
.profile-menu .dropdown { display: none; position: absolute; right: 10px; top: 40px; background: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); min-width: 160px; padding: 8px 0; z-index: 50; }
.profile-menu .dropdown.show { display: block; }
.profile-menu { position: relative; cursor: pointer; }

/* ensure photo preview shows nicely */
.photo-preview.show { display: block !important; }

/* HEADER */
header {
    background-color: #fff;
    color: white;
    padding: 20px 0;
}

header #branding {
    float: left;
    display: flex;
    align-items: center;
}

header #branding .logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

header #branding h1 {
    margin: 0;
    font-size: 28px;
    color: #0096FF;
}

header nav {
    float: right;
    margin-top: 10px;
}

header nav ul li {
    display: inline-block; /* allow block children to show */
    margin-left: 20px;
    vertical-align: middle;
}



header nav ul li a {
    color: #0096FF;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}



header nav ul li a:hover {
    background-color: #0096FF;
    color: white;
}



/* SHOWCASE / HERO */
#showcase {
    min-height: 450px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
}

.showcase-content {
    background: linear-gradient(to right, #4a90e2, #50c9c3);
    padding: 40px 20px;
    border-radius: 10px;
}

#showcase h1 {
    font-size: 50px;
    margin-bottom: 15px;
}

#showcase p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* BOXES / FEATURES */
#boxes {
    display: flex;
    justify-content: center;      /* centers all boxes horizontally */
    align-items: flex-start;      /* keeps all boxes top-aligned */
    flex-wrap: nowrap;            /* keeps them in one row */
    gap: 40px;                    /* equal spacing between boxes */
    margin: 60px auto;            /* centers section itself */
    max-width: 950px;            /* keeps boxes within a centered frame */
    overflow: visible;
}

#boxes .box {
    background-color: #0096FF;
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, background-color 0.3s;
    width: 300px;                 /* consistent box size */
    height: 200px;
}

#boxes .box:hover {
    transform: translateY(-10px);
    background-color: #004f87;
}

#boxes .box i {
    font-size: 60px;
    margin-bottom: 15px;
    display: block;
    color: white;
}




/* FOOTER */
footer {
    flex-shrink: 0;
    margin-top: auto;
    background-color: #333333;
    color: white;
    padding: 20px 0;
    text-align: center;
    height: 100%;
}

/* MISSION SECTION */
.mission-section {
    position: relative;
    padding: 60px 0 40px 0;
}
.mission-card {
    position: relative;
    margin: 0 auto;
    max-width: 960px;
    padding: 36px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,150,255,0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.mission-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0,150,255,0.35), rgba(80,201,195,0.35));
    filter: blur(8px);
}
.mission-badge {
    display: inline-block;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: 12px;
    color: #0b6fbf;
    background: linear-gradient(90deg, rgba(0,150,255,.15), rgba(80,201,195,.15));
    border: 1px solid rgba(0,150,255,.25);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.mission-card h2 {
    margin: 6px 0 10px 0;
    font-size: 28px;
    color: #0b6fbf;
}
.mission-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #2c3e50;
}
@media (max-width: 768px) {
    .mission-card { padding: 24px 18px; }
    .mission-card h2 { font-size: 22px; }
    .mission-text { font-size: 16px; }
}

/* RESPONSIVE */
@media(max-width:1024px) {
    #boxes {
        gap: 30px; /* slightly reduce spacing */
    }
}

@media(max-width:768px) {
    #boxes {
        flex-direction: column; /* stack vertically on small screens */
        align-items: center;
        gap: 20px;
    }

    #boxes .box {
        width: 80%;   /* reduce width for small screens */
        height: auto; /* height adjusts automatically */
    }
    #showcase h1 {
        font-size: 36px;
    }

    #showcase p {
        font-size: 16px;
    }
}

/* SIGNUP FORM */

.signup-container {
    max-width: 450px;
    margin: 50px auto;
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.signup-container h2 {
    margin-bottom: 25px;
    color: #0096FF;
}

.signup-container input {
    width: 90%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.signup-container input:focus {
    border-color: #0096FF;
    outline: none;
}

.signup-container a {
    color: #0096FF;
    text-decoration: none;
}

.signup-container a:hover {
    text-decoration: underline;
}

/* ========================= */
/* ANIMATED BACKGROUND (BUBBLES EFFECT) */
/* ========================= */

.bubble-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Keep behind everything */
    background: linear-gradient(180deg, #eaf6ff, #ffffff);
}

.bubble {
    position: absolute;
    bottom: -150px;
    background: rgba(0, 150, 255, 0.25);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

/* Random sizes and positions for variation */
.bubble:nth-child(1) {
    width: 60px;
    height: 60px;
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
}
.bubble:nth-child(2) {
    width: 40px;
    height: 40px;
    left: 25%;
    animation-duration: 12s;
    animation-delay: 2s;
}
.bubble:nth-child(3) {
    width: 80px;
    height: 80px;
    left: 45%;
    animation-duration: 20s;
    animation-delay: 4s;
}
.bubble:nth-child(4) {
    width: 30px;
    height: 30px;
    left: 65%;
    animation-duration: 10s;
    animation-delay: 1s;
}
.bubble:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 80%;
    animation-duration: 25s;
    animation-delay: 3s;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1200px) scale(1.3);
        opacity: 0;
    }
}

/* ========================= */
/* LOGIN FORM STYLING */
/* ========================= */

.login-container {
    max-width: 450px;
    margin: 50px auto;
    background-color: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 25px;
    color: #0096FF;
}

.login-container input {
    width: 90%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.login-container input:focus {
    border-color: #0096FF;
    outline: none;
}

.login-container .button_1 {
    background-color: #0096FF;
    border: 0;
    color: white;
    height: 45px;
    font-weight: bold;
    border-radius: 8px;
    padding: 0 30px;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
    line-height: 45px;
    text-align: center;
    transition: background-color 0.3s;
}

.login-container .button_1:hover {
    background-color: #004f87;
}

.login-container a {
    color: #0096FF;
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

#loginMessage {
    margin-top: 10px;
    font-weight: bold;
}
