@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #153e5c;
    --secondary: #087e8b;
    --accent: #16a6a1;
    --background: #f4f7fa;
    --white: #ffffff;
    --text: #263746;
    --muted: #718096;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
}

/* NAVIGATION */

.navbar {
    background: white;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.logo {
    font-size: 27px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 27px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

nav a:hover {
    color: var(--secondary);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* BUTTONS */

.primary-btn,
.secondary-btn,
.outline-btn {
    padding: 12px 21px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: 0.3s;
}

.primary-btn {
    background: var(--secondary);
    color: white;
}

.primary-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.secondary-btn {
    background: white;
    color: var(--primary);
    margin-left: 10px;
}

.outline-btn {
    background: white;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

/* HERO */

.hero {
    min-height: 490px;
    display: flex;
    align-items: center;
    padding: 75px 10%;
    background: linear-gradient(120deg, #153e5c, #087e8b);
    color: white;
}

.hero-content {
    max-width: 720px;
}

.tagline {
    color: #75e0d4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 49px;
    line-height: 1.2;
    margin: 22px 0;
}

.hero h1 span {
    color: #75e0d4;
}

.hero p {
    font-size: 16px;
    line-height: 1.8;
    color: #e0edf2;
    margin-bottom: 30px;
}

/* STATISTICS */

.statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 35px 8%;
    margin-top: -5px;
}

.stat-card {
    background: white;
    padding: 27px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
}

.stat-card h2 {
    color: var(--secondary);
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--muted);
    font-size: 13px;
}

/* HOW IT WORKS */

.how-section {
    padding: 65px 9%;
    text-align: center;
}

.how-section > h2,
.section-heading h2 {
    color: var(--primary);
    font-size: 29px;
    margin-bottom: 12px;
}

.section-subtitle,
.section-heading p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 35px;
}

.step-card {
    background: white;
    padding: 32px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: left;
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.step-card span {
    color: var(--accent);
    font-size: 25px;
    font-weight: 800;
}

.step-card h3 {
    margin: 17px 0 10px;
    color: var(--primary);
}

.step-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* GENERAL SECTIONS */

.main-section {
    padding: 70px 9%;
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

/* FORM */

#complaintForm {
    max-width: 750px;
    margin: auto;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: white;
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(8,126,139,0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

#complaintForm button {
    width: 100%;
}

#confirmation {
    margin-top: 20px;
    text-align: center;
    line-height: 1.8;
}

/* TRACKING */

.tracking-section {
    background: white;
    text-align: center;
}

.tracking-box {
    max-width: 600px;
    margin: auto;
    display: flex;
    gap: 12px;
}

#trackingResult {
    max-width: 600px;
    margin: 25px auto;
    text-align: left;
}

/* DASHBOARD */

.dashboard-section {
    background: #edf3f7;
}

.dashboard-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

#complaintList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.complaint-card {
    background: white;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    line-height: 2;
    box-shadow: 0 3px 12px rgba(0,0,0,0.03);
}

.complaint-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.complaint-card p {
    font-size: 13px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.complaint-card select {
    margin-top: 12px;
}

/* AUTHENTICATION MODAL */

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    inset: 0;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 12px;
    width: 100%;
    max-width: 430px;
    position: relative;
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 25px;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    border: none;
    background: none;
    font-size: 27px;
    cursor: pointer;
    color: var(--muted);
}

#authSubmit {
    width: 100%;
}

#authMessage {
    margin-top: 15px;
    font-size: 13px;
    text-align: center;
}

/* FOOTER */

footer {
    background: #102f43;
    color: white;
    text-align: center;
    padding: 30px;
    line-height: 2;
}

footer h2 {
    color: white;
}

/* RESPONSIVE */

@media(max-width: 850px) {
    .navbar {
        flex-wrap: wrap;
        gap: 18px;
    }

    .statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr;
    }

    #complaintList {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    .navbar {
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .statistics {
        padding: 25px 5%;
        gap: 10px;
    }

    .stat-card {
        padding: 18px 10px;
    }

    .form-row,
    .dashboard-controls {
        grid-template-columns: 1fr;
    }

    .tracking-box {
        flex-direction: column;
    }

    .main-section {
        padding: 50px 5%;
    }

    #complaintForm {
        padding: 22px;
    }
}
/* STATUS BADGES */

.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.status.pending {
    background: #fff4d6;
    color: #a66b00;
}

.status.progress {
    background: #e0f0ff;
    color: #1765a0;
}

.status.resolved {
    background: #dff7e9;
    color: #16804a;
}

/* DASHBOARD IMPROVEMENTS */

.complaint-card label {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.complaint-card select {
    background: #f8fafc;
    cursor: pointer;
}

#photoPreview img {
    display: block;
    border: 1px solid var(--border);
}

#confirmation .complaint-card {
    border: 1px solid #b7e8d0;
    background: #f0fff6;
}

#confirmation h3 {
    color: #16804a;
}

#confirmation h2 {
    color: var(--secondary);
    margin: 12px 0;
}

/* BUTTON DISABLED STATE */

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* SMOOTH INTERACTIONS */

.complaint-card,
.stat-card,
.step-card {
    transition: all 0.25s ease;
}