/* style.css */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fb;
    margin: 0;
    padding: 0;
    color: #1f2933;
}

/* Header */
header {
    background-color: #1e3a8a;
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

header h1 {
    margin: 0;
    font-size: 22px;
}

.nav-right {
    font-size: 14px;
}

.nav-right a {
    color: #bfdbfe;
    text-decoration: none;
    margin-left: 8px;
}

.nav-right a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

/* Typography */
h2, h3 {
    color: #1e3a8a;
    margin-top: 0;
}

p {
    line-height: 1.4;
}

/* Forms */
form {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input[type="text"],
input[type="url"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
}

/* Buttons */
button,
input[type="submit"] {
    background-color: #2563eb;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

button:hover,
input[type="submit"]:hover {
    background-color: #1d4ed8;
}

a button {
    width: 100%;
}

/* Error message */
.error {
    color: #b91c1c;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* Code / URLs */
code {
    font-size: 12px;
    word-break: break-all;
}

/* Table wrapper for mobile scrolling */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    min-width: 600px;
}

th, td {
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 13px;
    vertical-align: top;
}

th {
    background-color: #eff6ff;
    color: #1e3a8a;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    background-color: #e0f2fe;
    color: #0369a1;
    margin-right: 6px;
    margin-bottom: 4px;
}

/* Links */
a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
    header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    header h1 {
        font-size: 18px;
    }

    .container {
        margin: 12px;
        padding: 12px;
        box-shadow: none;
        border-radius: 6px;
    }

    h2, h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }

    button,
    input[type="submit"] {
        width: 100%;
        margin-bottom: 8px;
        font-size: 14px;
        padding: 10px 12px;
    }

    td {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 14px;
    }

    header h1 {
        font-size: 16px;
    }

    .container {
        margin: 8px;
        padding: 10px;
    }

    h2, h3 {
        font-size: 16px;
    }
}
