/* =========================
   Base Layout
========================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #0f172a;
    color: white;
    line-height: 1.6;
}

/* Main containers */
header, main, footer {
    width: min(1000px, 90%);
    margin: 20px auto;
    padding: 20px;
    background-color: #1e293b;
    border: 3px solid #000;
    border-radius: 8px;
}

/* =========================
   Typography
========================= */

h1 {
    text-align: center;
    color: #60a5fa;
}

h2 {
    color: #93c5fd;
    margin-top: 40px;
}

h3 {
    color: #bfdbfe;
}

p {
    margin: 10px 0;
}

ul {
    margin-left: 20px;
}

/* =========================
   Links
========================= */

a:link,
a:visited {
    color: #ffffff;
}

a:hover,
a:active {
    color: red;
}

/* =========================
   Layout Components
========================= */

.panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.card {
    background: #0f172a;
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
}

.row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.label {
    color: #93c5fd;
}

/* =========================
   Form Elements
========================= */

input {
    padding: 12px;
    border-radius: 6px;
    border: none;
}

button {
    padding: 10px;
    background: #3b82f6;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #2563eb;
}

/* Force full width on mobile-friendly inputs */
input,
button {
    width: 100%;
    box-sizing: border-box;
}

/* =========================
   Progress Bar
========================= */

#progressContainer {
    margin-top: 15px;
    display: none;
}

.bar {
    background: #334155;
    border-radius: 6px;
    overflow: hidden;
}

#progressBar {
    height: 10px;
    width: 0%;
    background: #22c55e;
}

/* =========================
   Logo
========================= */

.logo-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-inner img {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   Mobile Responsiveness
========================= */

@media (max-width: 600px) {

    header, main, footer {
        width: 95%;
        padding: 12px;
        margin: 10px auto;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .logo-inner img {
        max-width: 140px;
    }

    h1 {
        font-size: 20px;
    }
}