/*
|--------------------------------------------------------------------------
| Main stylesheet for the Bicycle Theft Reduction System
|--------------------------------------------------------------------------
| Refreshed version for a cleaner, more professional website appearance.
*/

:root {
    --navy: #0f2b46;
    --navy-dark: #0b1f33;
    --blue: #1b4b75;
    --blue-light: #2f6fa6;
    --gold: #d9b44a;
    --light: #f4f7fa;
    --white: #ffffff;
    --text: #1f2933;
    --muted: #52606d;
    --success: #0f766e;
    --error: #b91c1c;
    --warning: #92400e;
    --border: #d9e2ec;
    --border-strong: #bcccdc;
    --shadow-sm: 0 4px 10px rgba(15, 43, 70, 0.06);
    --shadow-md: 0 10px 24px rgba(15, 43, 70, 0.10);
    --shadow-lg: 0 16px 40px rgba(15, 43, 70, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --transition: 0.22s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(27, 75, 117, 0.04), transparent 30%),
        linear-gradient(to bottom, #f8fbfd, var(--light));
    color: var(--text);
    line-height: 1.65;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

a:hover {
    color: var(--blue-light);
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
}

.nav-wrap {
    min-height: 84px;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
    letter-spacing: 0.2px;
}

.logo a {
    color: var(--white);
}

.logo a:hover {
    opacity: 0.95;
}

.tagline {
    margin: 0.35rem 0 0;
    color: #d8e6f2;
    font-size: 0.94rem;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: var(--white);
    font-weight: 600;
    transition:
        background-color var(--transition),
        transform var(--transition),
        opacity var(--transition);
}

.nav-list a:hover,
.nav-list a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transform: translateY(-1px);
}

/*
|--------------------------------------------------------------------------
| Main content
|--------------------------------------------------------------------------
*/
.main-content {
    padding: 2.5rem 0 4rem;
}

/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/
.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 43, 70, 0.98), rgba(27, 75, 117, 0.96));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(217, 180, 74, 0.16);
    filter: blur(8px);
}

.hero h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    max-width: 850px;
}

.hero p {
    margin: 0;
    max-width: 760px;
    color: #e6eef6;
    font-size: 1.04rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

/*
|--------------------------------------------------------------------------
| Layout grids
|--------------------------------------------------------------------------
*/
.grid-2,
.grid-3 {
    display: grid;
    gap: 1.4rem;
    margin-top: 1.6rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/
.card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    line-height: 1.25;
}

.card p:last-child,
.card ul:last-child {
    margin-bottom: 0;
}

.form-card {
    max-width: 900px;
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| KPI
|--------------------------------------------------------------------------
*/
.kpi {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0.35rem 0 0.5rem;
    letter-spacing: -0.5px;
}

/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/
form {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.42rem;
    font-weight: 700;
    font-size: 0.96rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
    background: #fff;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background-color var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: #7b8794;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 4px rgba(47, 111, 166, 0.16);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.82rem 1.2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        opacity var(--transition),
        background-color var(--transition);
    box-shadow: 0 8px 18px rgba(15, 43, 70, 0.10);
}

button,
.btn {
    background: var(--blue);
    color: var(--white);
}

.btn-secondary {
    background: #4b5563;
    color: var(--white);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-gold {
    background: var(--gold);
    color: #1b1b1b;
}

button:hover,
.btn:hover,
button:focus-visible,
.btn:focus-visible {
    opacity: 0.96;
    text-decoration: none;
    transform: translateY(-1px);
}

button:active,
.btn:active {
    transform: translateY(0);
}

/*
|--------------------------------------------------------------------------
| Alerts
|--------------------------------------------------------------------------
*/
.alert {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.alert-success {
    background: #dff7ee;
    color: #0b6a62;
    border-color: #bfe8d9;
}

.alert-error {
    background: #fde8e8;
    color: #a51b1b;
    border-color: #f4c7c7;
}

.alert-warning {
    background: #fff4d6;
    color: var(--warning);
    border-color: #f3dfab;
}

/*
|--------------------------------------------------------------------------
| Tables
|--------------------------------------------------------------------------
*/
.table-wrap {
    overflow-x: auto;
    border-radius: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    background: var(--white);
    border-radius: 14px;
}

th,
td {
    padding: 0.95rem 0.9rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

thead th {
    background: #eef4f9;
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border-strong);
}

tbody tr:hover {
    background: #f9fbfd;
}

/*
|--------------------------------------------------------------------------
| Status badges
|--------------------------------------------------------------------------
*/
.status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.status-reported {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-under-investigation {
    background: #fef3c7;
    color: #92400e;
}

.status-recovered {
    background: #d1fae5;
    color: #065f46;
}

.status-closed {
    background: #e5e7eb;
    color: #374151;
}

/*
|--------------------------------------------------------------------------
| Images
|--------------------------------------------------------------------------
*/
.bike-image {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(15, 43, 70, 0.08);
}

.preview-image {
    max-width: 260px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: none;
    margin-top: 0.6rem;
    box-shadow: 0 8px 16px rgba(15, 43, 70, 0.08);
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/
.site-footer {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.site-footer h3 {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: #d8e6f2;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/*
|--------------------------------------------------------------------------
| Helper text and map
|--------------------------------------------------------------------------
*/
.small-text {
    font-size: 0.92rem;
    color: var(--muted);
}

.map-placeholder {
    width: 100%;
    min-height: 340px;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/*
|--------------------------------------------------------------------------
| Lists
|--------------------------------------------------------------------------
*/
ul {
    padding-left: 1.2rem;
}

li + li {
    margin-top: 0.35rem;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/
@media (max-width: 900px) {
    .nav-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-list {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.6rem 0 3rem;
    }

    .hero {
        padding: 2rem 1.25rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.1rem;
    }

    .bike-image {
        width: 96px;
        height: 72px;
    }
}