* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f8fc;
    color: #1f2937;
}

/* Navigation */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: white;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #1f2937;
}

/* Hero */

.hero {
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-content {
    max-width: 800px;
}

.tagline {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background-color: #2563eb;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
}

button.secondary {
    background-color: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

/* How it works */

.how-it-works {
    padding: 70px 60px;
    background-color: white;
    text-align: center;
}

.how-it-works h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: auto;
}

.steps article {
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.steps h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.steps h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.steps p {
    line-height: 1.5;
}

/* Footer */

footer {
    text-align: center;
    padding: 25px;
}

/* Responsive */

@media (max-width: 700px) {

    .navbar {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .how-it-works {
        padding: 50px 20px;
    }
}

/* Form Pages */

.form-page {
    min-height: 700px;
    padding: 60px 20px;
}

.form-container {
    max-width: 650px;
    margin: auto;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-heading {
    text-align: center;
    margin-bottom: 35px;
}

.form-heading h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.form-heading p:last-child {
    font-size: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-container button {
    width: 100%;
    margin-top: 10px;
}

.button-link {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.button-link:hover {
    transform: translateY(-2px);
}

.button-link.secondary {
    background-color: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}



/* ================================
   HOMEPAGE POLISH
================================ */

body {
    background: #f8fafc;
    color: #172033;
}

/* Navigation */

.navbar {
    min-height: 76px;
    padding: 18px 7%;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 25px;
    letter-spacing: -0.5px;
}

.navbar nav {
    align-items: center;
    gap: 26px;
}

.navbar nav a {
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s ease;
}

.navbar nav a:hover {
    color: #2563eb;
}

/* Make logout match the navigation */

#logout-button {
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 15px;
}

/* Hero */

.hero {
    min-height: 620px;
    padding: 90px 20px 100px;
    background:
        radial-gradient(circle at 50% 20%, #e8f0ff 0%, transparent 45%),
        #f8fafc;
}

.hero-content {
    max-width: 900px;
}

.tagline {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 22px;
    border-radius: 30px;
    background: #eaf1ff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 24px;
    font-size: clamp(44px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-description {
    max-width: 650px;
    margin-bottom: 35px;
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
}

.hero-buttons {
    gap: 14px;
}

.hero-buttons .button-link {
    min-width: 175px;
    text-align: center;
    border-radius: 9px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.12);
}

.hero-buttons .button-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

/* How it works */

.how-it-works {
    padding: 90px 7%;
    background: white;
}

.how-it-works h2 {
    font-size: 38px;
    letter-spacing: -1px;
}

.steps {
    max-width: 1050px;
    gap: 24px;
}

.steps article {
    padding: 34px;
    text-align: left;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    transition: 0.25s ease;
}

.steps article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.steps h3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 15px;
}

.steps h4 {
    font-size: 24px;
    margin-bottom: 12px;
}

.steps p {
    color: #64748b;
}

/* Footer */

footer {
    padding: 30px;
    background: #172033;
    color: #cbd5e1;
    font-size: 14px;
}

/* Mobile */

@media (max-width: 700px) {

    .navbar {
        padding: 18px 20px;
    }

    .hero {
        min-height: 560px;
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .button-link {
        width: 100%;
    }

    .how-it-works {
        padding: 65px 20px;
    }

    .how-it-works h2 {
        font-size: 30px;
    }
}

/* ================================
   DASHBOARD POLISH
================================ */

.dashboard {
    max-width: 1150px;
    margin: 0 auto;
    padding: 70px 24px 100px;
}

/* Header */

.dashboard-header {
    text-align: center;
    margin-bottom: 42px;
}

.dashboard-header .tagline {
    margin-bottom: 16px;
}

.dashboard-header h1 {
    margin-bottom: 12px;
    font-size: clamp(38px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.dashboard-header > p:last-child {
    color: #64748b;
    font-size: 17px;
}

/* Search and filter */

.dashboard-controls {
    display: flex;
    gap: 14px;
    max-width: 850px;
    margin: 0 auto 65px;
}

.dashboard-controls input,
.dashboard-controls select {
    height: 52px;
    padding: 0 17px;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

.dashboard-controls input {
    flex: 1;
}

.dashboard-controls select {
    width: 190px;
    cursor: pointer;
}

.dashboard-controls input:focus,
.dashboard-controls select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

/* Sections */

.dashboard > section:not(.dashboard-header):not(.dashboard-controls) {
    margin-bottom: 65px;
}

.dashboard section h2 {
    margin-bottom: 24px;
    font-size: 27px;
    letter-spacing: -0.5px;
}

/* Report grids */

.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Report cards */

.report-card {
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.report-card h3 {
    margin-bottom: 16px;
    font-size: 21px;
}

.report-card p {
    margin: 8px 0;
    color: #64748b;
    line-height: 1.5;
}

/* Possible matches */

.matches-section {
    padding: 30px;
    border-radius: 20px;
    background: #f1f5f9;
}

.matches-section h2 {
    margin-bottom: 25px;
}

.matches-section .reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Match cards */

.match-card {
    padding: 28px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
}

.match-card h3 {
    margin-bottom: 16px;
    font-size: 22px;
}

.match-card p {
    margin: 8px 0;
    color: #64748b;
    line-height: 1.5;
}

.match-score {
    display: inline-block;
    padding: 7px 13px;
    margin-bottom: 5px;
    border-radius: 30px;
    background: #eaf1ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

.match-card button {
    width: 100%;
    margin-top: 18px;
}

/* Mobile */

@media (max-width: 800px) {

    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .matches-section .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .dashboard {
        padding: 50px 18px 70px;
    }

    .dashboard-controls {
        flex-direction: column;
    }

    .dashboard-controls select {
        width: 100%;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .matches-section {
        padding: 22px;
    }
}

/* Report images */

.report-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
}


/* ================================
   ADMIN DASHBOARD
================================ */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0 70px;
}

.admin-stat-card {
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.admin-stat-card h3 {
    margin-bottom: 10px;
    font-size: 34px;
    color: #2563eb;
}

.admin-stat-card p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.admin-reports {
    margin-top: 0;
}

.admin-reports h2 {
    margin-bottom: 25px;
}

/* Admin delete action */

.admin-reports .report-card button {
    margin-top: 18px;
}

/* Responsive admin dashboard */

@media (max-width: 900px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* Admin delete action */

.admin-reports .report-card button {
    background: #dc2626;
}

.admin-reports .report-card button:hover {
    background: #b91c1c;
}