/* Secret Forest global theme inspired by the Login experience */

:root {
    --sf-body-gradient: radial-gradient(circle at 25% 15%, #2d4056 0%, #191b1d 45%, #060707 100%);
    --sf-surface-primary: rgba(9, 9, 12, 0.92);
    --sf-surface-secondary: rgba(255, 255, 255, 0.04);
    --sf-surface-tertiary: rgba(255, 255, 255, 0.07);
    --sf-border-soft: rgba(255, 255, 255, 0.08);
    --sf-border-strong: rgba(255, 255, 255, 0.18);
    --sf-card-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    --sf-card-shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.35);
    --sf-text-primary: #f4f5f7;
    --sf-text-muted: rgba(244, 245, 247, 0.68);
    --sf-heading-muted: rgba(244, 245, 247, 0.45);
    --sf-accent: #efd36c;
    --sf-accent-strong: #ffe59e;
    --sf-success: #7ee9b2;
    --sf-warning: #f5c16c;
    --sf-info: #7dd3fc;
    --sf-danger: #ff6b6b;
    --sf-nav-bg: rgba(5, 5, 6, 0.92);
    --sf-nav-bg-hover: rgba(255, 255, 255, 0.05);
    --sf-nav-border: rgba(255, 255, 255, 0.08);
    --sf-nav-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
    --sf-nav-text: #f4f5f7;
    --sf-nav-text-muted: rgba(244, 245, 247, 0.68);
    --sf-nav-accent: #efd36c;
    --sf-nav-accent-muted: rgba(239, 211, 108, 0.4);
    --sf-page-max-width: 1440px;
}

body.sf-theme {
    font-family: "Inter", "Montserrat", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--sf-text-primary);
    background: var(--sf-body-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    position: relative;
}

body.sf-theme::before {
    content: "";
    position: fixed;
    inset: 6% 18% auto;
    height: 32rem;
    background: radial-gradient(circle, rgba(239, 211, 108, 0.16) 0%, transparent 65%);
    filter: blur(85px);
    z-index: 0;
    pointer-events: none;
}

.sf-theme * {
    box-sizing: border-box;
}

.sf-theme .navbar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: var(--sf-nav-bg);
    border-bottom: 1px solid var(--sf-nav-border);
    box-shadow: var(--sf-nav-shadow);
}

.sf-theme .content {
    width: min(var(--sf-page-max-width), calc(100% - 2.5rem));
    margin: clamp(5.5rem, 9vw, 8rem) auto clamp(2.5rem, 5vw, 4rem) !important;
    padding: clamp(1.75rem, 3vw, 3rem);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(7, 7, 10, 0.95) 0%, rgba(21, 21, 26, 0.88) 100%);
    border: 1px solid var(--sf-border-strong);
    box-shadow: var(--sf-card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.sf-theme .content.padding-sup,
.sf-theme .content.redis-top {
    margin-top: clamp(6.5rem, 12vw, 9rem);
}

.sf-theme .content-devlogs {
    padding-bottom: clamp(2.5rem, 6vw, 5rem);
    gap: 2rem;
    padding-top: 8rem;
    max-width: 1000px;
    margin: 0 auto;
}

.sf-theme .content-index {
    min-height: 70vh;
    justify-content: space-between;
    text-align: center;
}

.sf-theme .header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.sf-theme .logo,
.sf-theme .logo-chico {
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}

.sf-theme .logo {
    max-width: clamp(180px, 26vw, 340px);
}

.sf-theme .logo-chico {
    max-width: clamp(90px, 14vw, 180px);
}

.sf-theme h1,
.sf-theme h2,
.sf-theme h3,
.sf-theme h4,
.sf-theme h5,
.sf-theme h6 {
    color: var(--sf-text-primary);
    letter-spacing: 0.02em;
}

.sf-theme h1 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.sf-theme h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.sf-theme h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.sf-theme h4,
.sf-theme h5,
.sf-theme h6 {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.sf-theme .role-user h1,
.sf-theme .role-user h5,
.sf-theme .gold,
.sf-theme .color-gold {
    color: var(--sf-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1.3;
}

.sf-theme a {
    color: var(--sf-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sf-theme a:hover {
    color: var(--sf-accent-strong);
}

.sf-theme hr {
    border-color: var(--sf-border-soft);
    opacity: 0.4;
}

.sf-theme .card,
.sf-theme .glass-board,
.sf-theme .glass-board-wide,
.sf-theme .admin-box,
.sf-theme .glass-card,
.sf-theme .cloud-card,
.sf-theme .panel,
.sf-theme .inv-card,
.sf-theme .card-char,
.sf-theme .glass-file-explorer,
.sf-theme .result-box,
.sf-theme .new-devlog,
.sf-theme .modal-content,
.sf-theme .list-group,
.sf-theme .list-group-item {
    background: var(--sf-surface-primary) !important;
    border: 1px solid var(--sf-border-strong) !important;
    border-radius: 22px;
    box-shadow: var(--sf-card-shadow);
    color: var(--sf-text-primary);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sf-theme .list-group-item {
    background: var(--sf-surface-secondary) !important;
    border-color: transparent !important;
}

.sf-theme .modal-header,
.sf-theme .modal-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.sf-theme .new-devlog input,
.sf-theme .new-devlog textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sf-border-soft);
    color: var(--sf-text-primary);
}

.sf-theme .btn,
.sf-theme button[data-bs-dismiss] {
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--sf-text-primary);
    background: var(--sf-surface-secondary);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.sf-theme .btn:hover,
.sf-theme button[data-bs-dismiss]:hover {
    transform: translateY(-1px);
    box-shadow: var(--sf-card-shadow-soft);
}

.sf-theme .btn-warning,
.sf-theme .bg-gold,
.sf-theme .btn.btn-warning.bg-gold,
.sf-theme .glass-modal__button--accent {
    background: linear-gradient(130deg, rgba(239, 211, 108, 0.95), rgba(255, 235, 180, 0.75));
    color: #1f1503;
    border-color: rgba(239, 211, 108, 0.65);
}

.sf-theme .btn-danger,
.sf-theme .glass-modal__button--danger {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.95), rgba(255, 140, 140, 0.75));
    color: #1a0202;
    border-color: rgba(255, 107, 107, 0.65);
}

.sf-theme .btn-secondary,
.sf-theme .glass-modal__button--muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--sf-text-primary);
    border-color: var(--sf-border-soft);
}

.sf-theme .btn-primary,
.sf-theme .btn.btn-primary {
    background: linear-gradient(135deg, rgba(239, 211, 108, 0.95), rgba(255, 229, 158, 0.85));
    color: #1c1403;
    border-color: rgba(239, 211, 108, 0.75);
    box-shadow: 0 18px 32px rgba(239, 211, 108, 0.25);
}

.sf-theme .btn-primary:hover,
.sf-theme .btn.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 229, 158, 0.95), rgba(239, 211, 108, 0.9));
    color: #1a1202;
}

.sf-theme .btn-primary:focus,
.sf-theme .btn.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(239, 211, 108, 0.35);
}

.sf-theme .btn-primary:disabled,
.sf-theme .btn.btn-primary:disabled {
    background: rgba(239, 211, 108, 0.4);
    border-color: rgba(239, 211, 108, 0.35);
    color: rgba(28, 20, 3, 0.6);
}

.sf-theme .btn-success,
.sf-theme .btn.btn-success {
    background: linear-gradient(140deg, rgba(126, 233, 178, 0.92), rgba(74, 223, 152, 0.85));
    color: #04160c;
    border-color: rgba(126, 233, 178, 0.65);
    box-shadow: 0 18px 36px rgba(74, 223, 152, 0.3);
}

.sf-theme .btn-success:hover,
.sf-theme .btn.btn-success:hover {
    background: linear-gradient(140deg, rgba(138, 243, 188, 0.95), rgba(92, 238, 168, 0.9));
}

.sf-theme .btn-success:focus,
.sf-theme .btn.btn-success:focus {
    box-shadow: 0 0 0 3px rgba(126, 233, 178, 0.35);
}

.sf-theme .btn-info,
.sf-theme .btn.btn-info {
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.92), rgba(78, 198, 252, 0.85));
    color: #04121a;
    border-color: rgba(125, 211, 252, 0.65);
    box-shadow: 0 18px 36px rgba(78, 198, 252, 0.3);
}

.sf-theme .btn-info:hover,
.sf-theme .btn.btn-info:hover {
    background: linear-gradient(135deg, rgba(148, 224, 255, 0.95), rgba(108, 211, 255, 0.9));
}

.sf-theme .btn-info:focus,
.sf-theme .btn.btn-info:focus {
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.35);
}

.sf-theme .form-control,
.sf-theme .form-select,
.sf-theme textarea,
.sf-theme input[type="text"],
.sf-theme input[type="number"],
.sf-theme input[type="password"],
.sf-theme input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sf-border-soft);
    border-radius: 14px;
    color: var(--sf-text-primary);
    padding: 0.55rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select-region {
    padding: 0.2rem 0.4rem;
    border-radius: 9999px;
    background-color: gray;

}

.form-select-region:focus {
    outline: none;
}


.form-select option,
.form-control option {
    color: black;
}

.option-white-important option {
    color: white !important;
}


.sf-theme .form-control:focus,
.sf-theme .form-select:focus,
.sf-theme textarea:focus,
.sf-theme input:focus {
    border-color: rgba(239, 211, 108, 0.8);
    box-shadow: 0 0 0 3px rgba(239, 211, 108, 0.25);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

.sf-theme .form-check-input {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--sf-border-soft);
}

.sf-theme .form-check-input:checked {
    background-color: var(--sf-accent);
    border-color: transparent;
}

.sf-theme .table-responsive {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sf-border-soft);
    border-radius: 22px;
    padding: 0.5rem;
    box-shadow: var(--sf-card-shadow-soft);
}

.sf-theme table {
    color: var(--sf-text-primary);
}

.sf-theme .table thead th {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid var(--sf-border-strong);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--sf-heading-muted);
}

.sf-theme .table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sf-theme .table tbody tr:hover {
    background: rgba(239, 211, 108, 0.08);
}

.sf-theme .table td,
.sf-theme .table th {
    border-color: rgba(255, 255, 255, 0.05) !important;
    text-align: left;
    vertical-align: middle;
}

.sf-theme .badge,
.sf-theme .status-badge {
    border-radius: 999px;
    padding: 0.1rem 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(239, 211, 108, 0.08);
    color: var(--sf-accent);
    border: 1px solid rgba(239, 211, 108, 0.32);
}

.sf-theme .status-badge--failed {
    background: rgba(255, 107, 107, 0.12);
    color: var(--sf-danger);
    border-color: rgba(255, 107, 107, 0.35);
}

.sf-theme .status-badge--queued,
.sf-theme .status-badge--info {
    background: rgba(125, 211, 252, 0.12);
    color: var(--sf-info);
    border-color: rgba(125, 211, 252, 0.4);
}

.sf-theme .status-badge--success {
    background: rgba(126, 233, 178, 0.12);
    color: var(--sf-success);
    border-color: rgba(126, 233, 178, 0.4);
}

.sf-theme .game-switch-option {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sf-border-soft);
    color: var(--sf-text-muted);
    backdrop-filter: blur(12px);
}

.sf-theme .game-switch-option.active {
    background: rgba(239, 211, 108, 0.18) !important;
    border-color: rgba(239, 211, 108, 0.42) !important;
    color: var(--sf-accent) !important;
}

.sf-theme .toast,
.sf-theme .result-box {
    color: var(--sf-text-primary);
}

.sf-theme .btn-close {
    filter: invert(1);
}

.sf-theme .text-muted,
.sf-theme .muted,
.sf-theme .gold span {
    color: var(--sf-text-muted) !important;
}

.sf-theme .pass-change {
    color: var(--sf-text-muted);
}

.sf-theme .pass-change:hover {
    color: var(--sf-accent);
}

@media (max-width: 992px) {
    .sf-theme .content {
        width: min(var(--sf-page-max-width), calc(100% - 1.5rem));
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .sf-theme .content {
        margin-top: 5rem;
        padding: 1.25rem;
        border-radius: 20px;
    }

    .sf-theme .navbar {
        background: rgba(5, 5, 6, 0.98);
    }
}