/* === 1. Base & Typography ==== */

/* Reset and box styles */
body, input, textarea, select, button {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

body {
    background: #f6f8fa;
    color: #222;
    padding: 3rem 2rem;
    padding-bottom: 6rem;
    margin: 0 auto;
    max-width: 1200px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #0366d6;
    margin: 0;
}

.description {
    font-size: 1rem;
    font-weight: 400;
    color: #444;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.25rem;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === 2. Components - Containers ==== */

.header-container {
    margin-bottom: 2.5rem;
}

.header-container .separator {
    margin-bottom: 2rem;
    border: 1px solid #e0e4e8;
}

.section-container {
    background: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
    margin-bottom: 1.5rem;
}

.extra-data {
   border-bottom: none;
   color: #333;
}

.extra {
    background: #e8e7e3;
}

.extra label, .extra .info-label{
    font-weight: 600;
    color: #555;
}

/* Status message containers */
.ok, .not-ok {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.ok {
    color: #218838;
    background: #e6f9ea;
    border: 1px solid #b7e4c7;
}

.not-ok {
    color: #c82333;
    background: #fbeaea;
    border: 1px solid #f5c6cb;
}

/* === 3. Components - Forms ==== */

.form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.form-group-singleline {
    width: 100%;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}

label {
    font-weight: 500;
    margin-right: 0.3rem;
}

input[type="text"],
input[type="number"],
select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #bfc9d1;
    border-radius: 4px;
    background: #f9fafb;
    transition: border 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #0366d6;
    outline: none;
    background: #fff;
}

input[type="submit"], button {
    background: #0366d6;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.45rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="submit"]:hover, button:hover {
    background: #155ab6;
}

/* Placeholder styles */
input::placeholder {
    color: #aab8c2;
    opacity: 1;
}

input:invalid{
    background-color: rgb(243 241 221);
}

#mp_select:disabled {
    background: #e9ecef;
    color: #888;
}

/* === 4. Components - Data Content ==== */

.code-container {
    background: #f4f6f8;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    padding-left: 1rem;
    padding-right: 1rem;
    font-family: 'Fira Mono', Consolas, monospace;
    color: #333;
    overflow-x: auto;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    resize: vertical;
}

.catalog-details {
    line-height: 1.6;
}

.info-label {
    font-weight: bold;
    color: #555;
    margin-right: 0.5rem;
}

.info-value {
    color: #222;
}


hr.hr-style {
    padding: 0;
    border: none;
    border-top: medium double #333;
    color: red;
    text-align: center;
    margin-top: 2rem;
}

/* === 5. Utilities ==== */

.hidden {
    display: none !important;
}

/* === 6. Media Queries (Responsive) ==== */

@media (width <= 700px) {
    body {
        padding: 3rem 1rem;
    }

    form {
        flex-direction: column;
        gap: 0.7rem 0;
        align-items: flex-start;
    }

    .form-group label[for="mountpoint"],
    .form-group label[for="longitude"],
    .form-group label[for="latitude"] {
        width: 100%;
    }
}
