
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #dbeafe, #f0fdfa, #ffffff);
    min-height: 100vh;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 60px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #0F766E;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
    transition: .3s;
}

nav a:hover {
    color: #0F766E;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

button, input, textarea, select, a {
    font-family: inherit;
}

button {
    padding: 13px 25px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #0F766E;
    color: white;
    transition: .3s;
}

button:hover {
    background: #0b5d57;
}

.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 30px;
    background: #0F766E;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    transition: .3s;
}

.btn:hover {
    background: #0b5d57;
}

.exit-btn {
    background: #d32f2f;
    color: white;
    padding: 10px 20px;
}

.exit-btn:hover {
    background: #b71c1c;
}

.dark-btn {
    background: #222;
    color: white;
    padding: 12px 18px;
}

.dark-btn:hover {
    background: #444;
}

.hero {
    text-align: center;
    padding: 120px 40px;
}

.hero h1 {
    font-size: 60px;
    color: #0F766E;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    width: 700px;
    max-width: 90%;
    margin: auto;
    line-height: 1.6;
    color: #555;
}

.learn {
    background: #14B8A6;
    margin-left: 15px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px;
    flex-wrap: wrap;
}

.card {
    width: 280px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    text-align: center;
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card h2,
.card h3 {
    color: #0F766E;
    margin-bottom: 15px;
}

.card p {
    color: #555;
    line-height: 1.7;
}

.why {
    padding: 100px 80px;
    text-align: center;
}

.why h2,
.workflow h2 {
    font-size: 42px;
    color: #0F766E;
    margin-bottom: 20px;
}

.subtitle {
    max-width: 700px;
    margin: auto auto 60px;
    font-size: 20px;
    color: #666;
    line-height: 1.6;
}

.why-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.why-box {
    width: 320px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.why-box h3 {
    color: #0F766E;
    margin-bottom: 15px;
}

.why-box p {
    line-height: 1.8;
    color: #555;
}

.workflow {
    padding: 100px 80px;
    text-align: center;
}

.workflow-text {
    font-size: 20px;
    color: #666;
    max-width: 700px;
    margin: auto auto 60px;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    background: white;
    width: 250px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: .3s;
}

.step:hover {
    transform: translateY(-10px);
}

.circle {
    width: 60px;
    height: 60px;
    background: #0F766E;
    color: white;
    font-size: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.step h3 {
    color: #0F766E;
    margin-bottom: 15px;
}

.step p {
    line-height: 1.7;
    color: #555;
}

.emergency {
    padding: 80px 10%;
    text-align: center;
}

.cards {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.report-page {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.report-page h1 {
    text-align: center;
    color: #0F766E;
    margin-bottom: 20px;
}

.report-page > p {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    color: #333;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #14B8A6;
    border-color: #0F766E;
}

textarea {
    resize: vertical;
}

form button {
    margin-top: 30px;
}

.summary-box {
    margin-top: 20px;
    padding: 20px;
    background: #F8FAFC;
    border: 1px solid #ddd;
    border-radius: 10px;
    min-height: 100px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.progress {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: bold;
}

.done {
    color: green;
}

.current {
    color: #0F766E;
}

.dashboard {
    padding: 80px;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    transition: .3s;
}

.dashboard-card:hover {
    transform: translateY(-8px);
}

.dashboard-card h3 {
    color: #0F766E;
    margin: 15px 0;
    font-size: 22px;
}

/* Report search and management */

#reportSearch {
    max-width: 600px;
    display: block;
    margin: 20px auto;
}

#reportList {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

#reportList .card {
    text-align: left;
    overflow-wrap: anywhere;
}

#reportList .card button {
    margin: 12px 8px 0 0;
    padding: 10px 16px;
    font-size: 14px;
}

#reportList .card button:last-child {
    background: #d32f2f;
}

#reportList .card button:last-child:hover {
    background: #b71c1c;
}

#fileName,
#fileMessage {
    margin-top: 15px;
    overflow-wrap: anywhere;
}

#preview {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 10px;
}

footer {
    text-align: center;
    padding: 25px;
    color: #555;
    line-height: 1.8;
}

/* Dark mode */

body.dark {
    background: #121212;
    color: #f5f5f5;
}

body.dark header,
body.dark .report-page,
body.dark .card,
body.dark .why-box,
body.dark .step,
body.dark .dashboard-card {
    background: #1e1e1e;
    color: #f5f5f5;
}

body.dark .summary-box {
    background: #292929;
    color: #f5f5f5;
    border-color: #555;
}

body.dark input,
body.dark textarea,
body.dark select {
    background: #333;
    color: white;
    border-color: #555;
}

body.dark nav a,
body.dark .card p,
body.dark .why-box p,
body.dark .step p,
body.dark .report-page > p,
body.dark .hero p,
body.dark footer {
    color: #ddd;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark .logo {
    color: #38d9a9;
}

/* Accessibility */

img {
    max-width: 100%;
}

nav a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid #14B8A6;
    outline-offset: 4px;
}

/* Tablet */

@media (max-width: 1024px) {
    header {
        padding: 20px 30px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .features,
    .why,
    .workflow {
        padding: 60px 30px;
    }

    .dashboard {
        padding: 50px 25px;
    }
}

/* Mobile */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    nav {
        justify-content: center;
        gap: 15px;
    }

    nav a {
        font-size: 14px;
    }

    .header-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        width: 100%;
        font-size: 16px;
    }

    .features,
    .why,
    .workflow,
    .emergency {
        padding: 50px 20px;
    }

    .why h2,
    .workflow h2 {
        font-size: 32px;
    }

    .card,
    .why-box,
    .step {
        width: 100%;
        max-width: 400px;
    }

    .steps {
        gap: 20px;
    }

    .report-page {
        margin: 25px 15px;
        padding: 25px 18px;
    }

    .dashboard {
        padding: 40px 20px;
    }

    .learn {
        margin-left: 0;
    }

    .progress {
        font-size: 14px;
        gap: 12px;
    }
}

/* Small screens */

@media (max-width: 400px) {
    .hero h1 {
        font-size: 30px;
    }

    .logo {
        font-size: 24px;
    }

    .btn,
    button {
        font-size: 15px;
        padding: 12px 18px;
    }

    .dark-btn,
    .exit-btn {
        padding: 10px 12px;
    }
}
