/* Admin shared styles extracted from admin_landing_form.html */

:root {
    --bg: #020617;
    --card-bg: #020617;
    --border-subtle: #1f2937;
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.1);
    --accent-strong: rgba(99, 102, 241, 0.25);
    --accent-danger: #f97373;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --input-bg: #020617;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
    --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.6);
    --transition-fast: 150ms ease-out;
    --transition-med: 220ms ease-out;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--text-main);
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px;
}

.page {
    width: 100%;
    max-width: 960px;
}

.heading {
    margin-bottom: 24px;
}

.heading-title {
    font-size: 26px;
    font-weight: 650;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.heading-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--accent-strong);
    background: radial-gradient(circle at top left, var(--accent-soft) 0, transparent 60%);
    color: var(--text-muted);
}

.heading-subtitle {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    max-width: 600px;
}

.card {
    background: radial-gradient(circle at top left, #111827 0, #020617 55%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-soft);
    padding: 22px 20px 20px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -120px;
    opacity: 0.18;
    background: radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.22) 0, transparent 55%),
    radial-gradient(circle at 80% -10%, rgba(129, 140, 248, 0.4) 0, transparent 52%);
    pointer-events: none;
    z-index: 0;
}

.card-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 20px;
}

@media (max-width: 820px) {
    body {
        padding-top: 18px;
    }

    .card-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

.form-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 16px;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.label {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}

.label-hint {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/*.input,*/
.select,
.textarea {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, var(--input-bg), #020617);
    color: var(--text-main);
    font-size: 14px;
    padding: 8px 10px;
    outline: none;
    box-shadow: var(--shadow-subtle);
    transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
    color: #4b5563;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
    transform: translateY(-0.5px);
}

.input[readonly],
.input[disabled] {
    background: radial-gradient(circle at top left, #020617 0, #020617 55%);
    color: #9ca3af;
    cursor: default;
}

.textarea {
    min-height: 72px;
    resize: vertical;
    line-height: 1.4;
}

.textarea-sm {
    min-height: 56px;
    font-size: 13px;
}

.row-inline {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

@media (max-width: 640px) {
    .row-inline {
        flex-direction: column;
    }
}

.button {
    appearance: none;
    border: none;
    border-radius: var(--radius-md);
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    color: #e5e7eb;
    background: radial-gradient(circle at top left, #6366f1 0, #4f46e5 45%, #312e81 100%);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55);
    transition: transform var(--transition-med),
    box-shadow var(--transition-med),
    opacity var(--transition-fast);
    white-space: nowrap;
}

.button span {
    font-size: 12px;
}

.button-icon {
    font-size: 15px;
    line-height: 1;
}

.button:hover {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 18px 40px rgba(67, 56, 202, 0.85);
}

.button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.7);
}

.button-ghost {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12) 0, rgba(31, 41, 55, 0.94) 55%);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.36);
    color: #e5e7eb;
}

.button-ghost:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.button[disabled] {
    opacity: 0.65;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.radio-group {
    display: inline-flex;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: var(--shadow-subtle);
}

.radio-option {
    position: relative;
    flex: 1;
}

.radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color var(--transition-med),
    color var(--transition-med),
    transform var(--transition-fast);
    width: 100%;
}

.radio-label span.flag {
    font-size: 13px;
}

.radio-input:checked + .radio-label {
    background: radial-gradient(circle at top, rgba(129, 140, 248, 0.3), rgba(30, 64, 175, 0.95));
    color: #e5e7eb;
    transform: translateY(-0.5px);
}

.radio-input:focus-visible + .radio-label {
    outline: 2px solid rgba(129, 140, 248, 0.7);
    outline-offset: 2px;
}

.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.badge {
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.8);
}

.badge-soft {
    border: none;
    background: rgba(15, 23, 42, 0.6);
}

.advanced {
    margin-top: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.32), rgba(15, 23, 42, 0.96));
    overflow: hidden;
}

.advanced summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
}

.advanced summary::-webkit-details-marker {
    display: none;
}

.advanced-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.advanced-chevron {
    width: 16px;
    height: 16px;
    padding: 15px;
    border-radius: 999px;
}

/* Admin tabs widget */

.admin-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    margin-bottom: 16px;
}

.admin-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: background-color var(--transition-med), color var(--transition-med), transform var(--transition-fast);
}

.admin-tabs a.active {
    background: radial-gradient(circle at top, rgba(129, 140, 248, 0.3), rgba(30, 64, 175, 0.95));
    color: #e5e7eb;
}

.status {
    margin-top: 10px;
    padding: 8px 9px;
    border-radius: var(--radius-md);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
    color: var(--text-muted);
    min-height: 32px;
}

.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.status-message {
    flex: 1;
}

.status-link a {
    color: #a5b4fc;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
}

.status-link a:hover {
    text-decoration: underline;
}

.status--idle {
    border-color: rgba(55, 65, 81, 0.8);
}

.status--idle .status-icon {
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: var(--text-muted);
}

.status--loading {
    border-color: rgba(129, 140, 248, 0.9);
    background: radial-gradient(circle at top left, rgba(55, 65, 81, 0.9), rgba(15, 23, 42, 0.98));
    color: #e5e7eb;
}

.status--loading .status-icon {
    border: 2px solid rgba(129, 140, 248, 0.7);
    border-top-color: transparent;
    border-right-color: transparent;
    animation: spin 900ms linear infinite;
}

.status--error {
    border-color: rgba(248, 113, 113, 0.9);
    background: radial-gradient(circle at top left, rgba(127, 29, 29, 0.8), rgba(15, 23, 42, 0.98));
    color: #fee2e2;
}

.status--error .status-icon {
    background: rgba(248, 113, 113, 0.15);
    color: #fecaca;
}

.status--success {
    border-color: rgba(34, 197, 94, 0.9);
    background: radial-gradient(circle at top left, rgba(22, 163, 74, 0.7), rgba(15, 23, 42, 0.98));
    color: #dcfce7;
}

.status--success .status-icon {
    background: rgba(22, 163, 74, 0.2);
    color: #bbf7d0;
}

.status-small {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pill-muted {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.96);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.8);
}

.footnote {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.footnote strong {
    color: #e5e7eb;
    font-weight: 500;
}

.chip {
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(30,41,59,0.9);
    border: 1px solid rgba(55,65,81,0.8);
    text-decoration: none;
    font-size: 12px;
}
.chip:hover {
    background: rgba(39, 50, 76, 0.72);
}

.btn-small {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(55,65,81,0.8);
    text-decoration: none;
    font-size: 12px;
}
