
:root {
    --bg: #121212;
    --card: #1a1a1a;
    --text: #ffffff;
    --accent: #4da3ff;
    --accent-strong: #6bb8ff;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;

    min-height: calc(100vh - 100px);
    margin: 50px 0;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
}

/* Styled buttons (top two) */
.btn {
    display: block;
    text-align: center;
    padding: 14px;
    background-color: var(--card);
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;

    /* Increased default border */
    border: 2px solid rgba(77, 163, 255, 0.5);
    box-shadow: 0 0 0 rgba(77, 163, 255, 0);
    transition: all 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(77, 163, 255, 0.35);
    outline: none;
}

.btn:active {
    background-color: #222;
    box-shadow: 0 0 6px rgba(77, 163, 255, 0.25);
}

/* Bottom link (minimal styling only) */
.plain-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
}

.plain-link:hover,
.plain-link:focus-visible {
    color: var(--accent-strong);
    outline: none;
}

/* Buttons */
.btn-sm {
    display: inline-block;
    margin-right: 6px;
    margin-top: 4px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    background: transparent;
    border: 2px solid rgba(77,163,255,0.5);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-sm:hover,
.btn-sm:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 0 8px var(--blue-glow);
}

button.btn{
    width: 100%;
}

p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #cccccc;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.field label {
    font-size: 14px;
    color: #ffffff;
}

.field .hint {
    font-size: 12px;
    color: #aaaaaa;
    line-height: 1.3;
}

input[type="text"],
input[type="password"] {
    background-color: var(--card);
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--purple);
    box-shadow: 0 0 10px var(--purple-glow);
}


/* Group box for the [[[ section ]]] */
.group {
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.group-title {
    font-size: 16px;
    color: #aaaaaa;
}



/* Table styling */
.table-wrapper {
    background: var(--card);
    border-radius: 12px;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid rgba(168,85,247,0.25);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    color: #cccccc;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}


/* Form styling */
form {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(168,85,247,0.25);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}

form label {
    font-size: 14px;
    display: block;
    margin-bottom: 0px;
    margin-top: 5px;
    text-align: left;
}

form input,
form textarea,
form select {
    padding: 12px;
    border-radius: 10px;
    background: #1a1a1a;
    color: var(--text);
    border: 2px solid rgba(168,85,247,0.6);
    outline: none;
    font-size: 14px;
    transition: 0.2s ease;
}

form input:focus,
form textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 10px rgba(168,85,247,0.35);
}

/* Radio group spacing */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-option input {
    margin: 0;
}

/* Notes textarea */
textarea {
    min-height: 100px;
    resize: vertical;
}