/* =====================
   Reset & Base
   ===================== */
* {
    box-sizing: border-box;
}

body {
    background-color: #dbdbdb;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

html {
    min-height: 100%;
}

/* =====================
   Typography
   ===================== */
h1 {
    font-size: 1.5em;
    color: #000;
    margin-left: 50px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

h2 {
    font-size: 1.5em;
    color: #000;
    margin: 10px 50px;
    font-family: Arial, Helvetica, sans-serif;
}

h3 {
    font-size: 1.1em;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0;
}

p {
    font-size: 1em;
    color: #000;
    margin: 10px 0;
    font-family: Arial, Helvetica, sans-serif;
}

/* =====================
   Navigation
   ===================== */
.topnav {
    background-color: #333;
    overflow: hidden;
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav button.split,
.topnav a.split {
    display: block !important;
    float: right !important;
    background-color: #00bfff !important;
    color: white !important;
    height: 48px;
    width: 80px;
    font-size: 17px;
    line-height: 48px;
    text-align: center;
    padding: 0 !important;
    border: none;
}

.topnav a.split:hover,
.topnav button.split:hover {
    background-color: #00bfff !important;
    color: white !important;
    opacity: 0.8;
}

/* =====================
   Logo Icon
   ===================== */
.icon_png {
    position: absolute;
    z-index: -99999;
    top: 0;
    left: 0;
    width: 45px;
    height: auto;
}

.icon_png img {
    width: 100%;
}

/* =====================
   Buttons
   ===================== */
button {
    background-color: #00bfff;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}

.cta-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background-color: #00bfff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95em;
}

.cta-btn:hover {
    opacity: 0.8;
}

/* =====================
   Home Page Layout
   ===================== */
.home-layout {
    display: flex;
    gap: 24px;
    padding: 20px 50px;
    align-items: flex-start;
}

.home-main {
    flex: 1;
}

.home-intro {
    margin-bottom: 24px;
}

.bikeRackImg {
    float: right;
    width: 40%;
    margin: 0 0 16px 24px;
}

.bikeRackImg img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #000;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #ccc;
}

.info-card ul {
    padding-left: 18px;
    margin: 8px 0 0;
}

.info-card li {
    margin-bottom: 6px;
    font-size: 0.95em;
    font-family: Arial, Helvetica, sans-serif;
}

/* =====================
   Home Sidebar
   ===================== */
.home-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.home-sidebar h3 {
    border-bottom: 2px solid #00bfff;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.sidebar-links,
.sidebar-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.sidebar-links li,
.sidebar-facts li {
    padding: 6px 0;
    border-bottom: 1px solid #ccc;
    font-size: 0.9em;
    font-family: Arial, Helvetica, sans-serif;
}

.sidebar-links a {
    color: #00bfff;
    text-decoration: none;
}

.sidebar-links a:hover {
    text-decoration: underline;
}

/* =====================
   Tables
   ===================== */
table {
    margin-left: 50px;
    border-collapse: collapse;
    width: calc(100% - 100px);
}

th, td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #ccc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95em;
}

th {
    background-color: #333;
    color: #f2f2f2;
}

th a {
    color: #f2f2f2;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

th a:hover {
    color: #00bfff;
}

tr:nth-child(even) td {
    background-color: #efefef;
}

tr:hover td {
    background-color: #dff4fc;
}

td a {
    color: #00bfff;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

/* =====================
   Admin Dashboard
   ===================== */
h1.title {
    font-size: 1.5em;
    color: #000;
    margin-left: 50px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

h1.header {
    font-size: 1.5em;
    color: #000;
    margin-left: 50px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.filter-form {
    margin-left: 50px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    display: inline;
    white-space: nowrap;
}

.filter-form select,
.filter-form input {
    padding: 8px 10px;
    font-size: 0.95em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
}

.filter-form button[type=submit] {
    padding: 8px 16px;
    font-size: 0.95em;
    background-color: #00bfff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.filter-form button[type=submit]:hover {
    opacity: 0.8;
}

.filter-form a {
    padding: 8px 16px;
    font-size: 0.95em;
    color: #f44336;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.filter-form a:hover {
    text-decoration: underline;
}

.expanded-row td {
    background-color: #f9f9f9;
    padding: 10px 20px;
    border-top: none;
}

.expanded-row select {
    padding: 6px 10px;
    font-size: 0.95em;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 8px;
    font-family: Arial, Helvetica, sans-serif;
}

.expanded-row button[type=submit] {
    padding: 6px 14px;
    font-size: 0.95em;
    background-color: #00bfff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.action-btns a {
    margin-right: 6px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: white;
    background-color: #00bfff;
}

.action-btns .btn-stolen {
    background-color: #ff9800;
}

.action-btns .btn-delete {
    background-color: #f44336;
}

.action-btns a:hover {
    opacity: 0.8;
}

/* =====================
   Account Management Tabs
   ===================== */
.tab-wrapper {
    display: flex;
    align-items: stretch;
    min-height: 600px;
}

.tab {
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    width: 30%;
    flex-shrink: 0;
}

.tab button {
    display: block;
    background-color: inherit;
    color: black;
    padding: 22px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1em;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #ccc;
}

.tabcontent {
    padding: 12px;
    border: 1px solid #ccc;
    width: 70%;
    border-left: none;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.field-row label {
    width: 120px;
    font-weight: bold;
    flex-shrink: 0;
}

/* =====================
   Report Form
   ===================== */
.report_form {
    margin-left: 50px;
    margin-top: 20px;
}

/* =====================
   Bike Images
   ===================== */
.bike-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.bike-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* =====================
   Progress Badges
   ===================== */
.progress-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
}

.badge-open       { background: #fde68a; color: #92400e; }
.badge-inprogress { background: #bfdbfe; color: #1e40af; }
.badge-resolved   { background: #bbf7d0; color: #14532d; }

.report-filter-bar {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}

.report-filter-bar a {
    padding: 5px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    background: #e5e7eb;
    color: #333;
}

.report-filter-bar a.active {
    background: #00bfff;
    color: white;
}

/* =====================
   Modal
   ===================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto 15% auto;
    border: 1px solid #888;
    width: 40%;
}

.close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: red;
}

.animate {
    animation: animatezoom 0.6s;
    -webkit-animation: animatezoom 0.6s;
}

@keyframes animatezoom {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

@-webkit-keyframes animatezoom {
    from { -webkit-transform: scale(0); }
    to   { -webkit-transform: scale(1); }
}

.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}

img.avatar {
    width: 20%;
    border-radius: 50%;
}

.container {
    padding: 0 16px;
}

.container input[type=text],
.container input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.container a {
    color: #00bfff;
    text-decoration: none;
}

.container::after,
.row::after {
    content: "";
    clear: both;
    display: table;
}

span.psw {
    float: right;
    padding-top: 16px;
}

.psw {
    color: #000;
    text-decoration: none;
    padding-right: 10px;
}

/* =====================
   Responsive
   ===================== */
@media screen and (max-width: 768px) {
    .home-layout {
        flex-direction: column;
        padding: 16px;
    }

    .home-sidebar {
        width: 100%;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .bikeRackImg {
        float: none;
        width: 100%;
        margin: 0 0 16px 0;
    }

    .tab-wrapper {
        flex-direction: column;
    }

    .tab {
        width: 100%;
    }

    .tabcontent {
        width: 100%;
        border-left: 1px solid #ccc;
        border-top: none;
    }
}

@media screen and (max-width: 300px) {
    span.psw {
        display: block;
        float: none;
    }

    .cancelbtn {
        width: 100%;
    }
}