/* ==========================================================================
   Planet Fufufafa Theme - Custom Minecraft Controller Styling
   Based on MinecraftLoginUnderFloatingIslands and PlanetFufufafaDashboard
   ========================================================================== */

:root,
:root.default,
:root.dark {
    /* Primary Dark Theme Colors */
    --deep-bg: #070e17;
    --base-bg: #0b1723;
    --card-banner-bg: #0e1d2c;
    --dropdown-bg: #0b1723;
    --outline: #182e44;
    --ram-bg: #102233;
    --tooltip-bg: #050b12;
    --base-text: #c5d4e4;

    /* Accents from Planet Fufufafa Dashboard */
    --primary: #1ff88b;       /* Neon Minecraft Green */
    --success: #1ff88b;
    --info: #00d2ff;          /* Diamond Blue */
    --warning: #fec56f;        /* Golden Ingot */
    --danger: #fa3f50;         /* Redstone Crimson */
    --blue: #00d2ff;
    --cyan: #00e5ff;
    --green: #1ff88b;
    --teal: #14b8a6;
    --dark: #070e17;
}

/* Backgrounds & Scrollers */
body,
.container-scroller,
.page-body-wrapper,
.main-panel,
.content-wrapper {
    background-color: #070e17 !important;
    color: #c5d4e4 !important;
}

/* ==========================================================================
   LOGIN PAGE - Split Screen Layout (MinecraftLoginUnderFloatingIslands)
   ========================================================================== */
.content-wrapper.auth.auth-bg-1 {
    min-height: 100vh !important;
    background: url("/static/assets/images/auth/backgroud.png?v=20261029_02") no-repeat center center !important;
    background-size: cover !important;
    padding: 2rem 0 !important;
    position: relative;
}

/* Subtle dark overlay on left to ensure maximum readability of the login card */
.content-wrapper.auth.auth-bg-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 11, 18, 0.75) 0%, rgba(5, 11, 18, 0.4) 70%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.login-row {
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .login-container-col {
        margin-left: max(6vw, 50px) !important;
        max-width: 470px !important;
    }
}

@media (max-width: 991px) {
    .login-container-col {
        margin: auto !important;
        max-width: 440px !important;
    }
    .content-wrapper.auth.auth-bg-1::before {
        width: 100%;
        background: rgba(5, 11, 18, 0.75);
    }
}

.login-modal {
    background: rgba(8, 17, 26, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(31, 248, 139, 0.3) !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(31, 248, 139, 0.12) !important;
    padding: 2.75rem 2.25rem 2.25rem 2.25rem !important;
}

.login-modal .auto-form-logo {
    margin-bottom: 1.75rem !important;
}

.login-modal .auto-form-logo img {
    height: 130px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 18px rgba(31, 248, 139, 0.5)) !important;
    transition: transform 0.25s ease;
}

.login-modal .auto-form-logo img:hover {
    transform: scale(1.03);
}

.login-header-text {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(31, 248, 139, 0.15);
}

.login-header-text h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(31, 248, 139, 0.3);
}

.login-header-text p {
    color: #7b96af;
    font-size: 0.88rem;
    margin-bottom: 0;
}

.login-modal .form-group {
    margin-bottom: 1.25rem !important;
}

.login-modal label.label {
    color: #9bb3c9 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 0.4rem !important;
}

.login-text-input {
    height: 48px !important;
    background-color: rgba(4, 11, 18, 0.9) !important;
    border: 1px solid rgba(31, 248, 139, 0.22) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.95rem !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.2s ease-in-out !important;
}

.login-text-input:focus,
.login-text-input:hover {
    border-color: #1ff88b !important;
    background-color: rgba(6, 16, 26, 0.98) !important;
    box-shadow: 0 0 14px rgba(31, 248, 139, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
}

.login-text-input::placeholder {
    color: #4b6277 !important;
}

/* Big Glowing Emerald Login Button */
.login-modal .submit-btn {
    height: 50px !important;
    background: linear-gradient(135deg, #1ff88b 0%, #10b981 100%) !important;
    color: #040c13 !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 20px rgba(31, 248, 139, 0.5) !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-modal .submit-btn:hover,
.login-modal .submit-btn:focus {
    background: linear-gradient(135deg, #2bf994 0%, #18cf92 100%) !important;
    box-shadow: 0 6px 28px rgba(31, 248, 139, 0.7) !important;
    transform: translateY(-2px) !important;
    color: #02070b !important;
}

#passkey-login-btn {
    border: 1px solid rgba(31, 248, 139, 0.35) !important;
    color: #1ff88b !important;
    background: rgba(31, 248, 139, 0.06) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

#passkey-login-btn:hover {
    background: rgba(31, 248, 139, 0.16) !important;
    box-shadow: 0 0 15px rgba(31, 248, 139, 0.3) !important;
}

/* ==========================================================================
   PANEL & DASHBOARD STYLING
   ========================================================================== */

/* Top Navbar */
.navbar.default-layout {
    background: #08131e !important;
    border-bottom: 1px solid rgba(31, 248, 139, 0.18) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

.navbar.default-layout .navbar-brand-wrapper {
    background: #060f18 !important;
    border-right: 1px solid rgba(24, 46, 68, 0.8) !important;
}

.navbar.default-layout .navbar-brand-wrapper .brand-logo img {
    height: 52px !important;
    max-width: 180px !important;
    filter: drop-shadow(0 0 10px rgba(31, 248, 139, 0.35));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.navbar.default-layout .navbar-brand-wrapper .brand-logo img:hover {
    filter: drop-shadow(0 0 16px rgba(31, 248, 139, 0.6));
    transform: scale(1.02);
}

.navbar.default-layout .navbar-brand-wrapper .brand-logo-mini img {
    height: 42px !important;
    width: 42px !important;
    filter: drop-shadow(0 0 8px rgba(31, 248, 139, 0.4));
}

.navbar.default-layout .navbar-menu-wrapper {
    background: #08131e !important;
    color: #c5d4e4 !important;
}

/* Sidebar */
.sidebar {
    background: #08131e !important;
    border-right: 1px solid rgba(24, 46, 68, 0.8) !important;
}

.sidebar .nav .nav-item .nav-link {
    color: #9cb3c9 !important;
    border-radius: 8px !important;
    margin: 3px 10px !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease-in-out !important;
}

.sidebar .nav .nav-item .nav-link i,
.sidebar .nav .nav-item .nav-link .menu-icon {
    color: #00d2ff !important;
}

.sidebar .nav .nav-item:hover .nav-link {
    background: rgba(31, 248, 139, 0.08) !important;
    color: #1ff88b !important;
}

.sidebar .nav .nav-item.active .nav-link {
    background: linear-gradient(90deg, rgba(31, 248, 139, 0.16) 0%, rgba(0, 210, 255, 0.05) 100%) !important;
    color: #1ff88b !important;
    border-left: 3px solid #1ff88b !important;
    font-weight: 600 !important;
    box-shadow: 0 0 15px rgba(31, 248, 139, 0.15) !important;
}

.sidebar .nav .nav-item.active .nav-link i,
.sidebar .nav .nav-item.active .nav-link .menu-icon {
    color: #1ff88b !important;
    filter: drop-shadow(0 0 6px rgba(31, 248, 139, 0.5));
}

/* Cards & Widgets matching Dashboard Mockup */
.card {
    background: #0b1723 !important;
    border: 1px solid rgba(28, 60, 90, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(31, 248, 139, 0.35) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 15px rgba(31, 248, 139, 0.1) !important;
}

.card .card-body {
    color: #c5d4e4 !important;
}

.card .card-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(28, 60, 90, 0.4) !important;
    padding-bottom: 10px !important;
    margin-bottom: 16px !important;
}

.card-banner,
.card-header {
    background: #0e1e2d !important;
    border-bottom: 1px solid rgba(28, 60, 90, 0.5) !important;
    color: #ffffff !important;
}

/* Glowing Status Badges */
.badge-success,
.badge-outline-success {
    background-color: rgba(31, 248, 139, 0.15) !important;
    color: #1ff88b !important;
    border: 1px solid #1ff88b !important;
    box-shadow: 0 0 10px rgba(31, 248, 139, 0.3) !important;
}

.badge-danger,
.badge-outline-danger {
    background-color: rgba(250, 63, 80, 0.15) !important;
    color: #fa3f50 !important;
    border: 1px solid #fa3f50 !important;
    box-shadow: 0 0 10px rgba(250, 63, 80, 0.3) !important;
}

.badge-info,
.badge-outline-info {
    background-color: rgba(0, 210, 255, 0.15) !important;
    color: #00d2ff !important;
    border: 1px solid #00d2ff !important;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3) !important;
}

.badge-warning,
.badge-outline-warning {
    background-color: rgba(254, 197, 111, 0.15) !important;
    color: #fec56f !important;
    border: 1px solid #fec56f !important;
    box-shadow: 0 0 10px rgba(254, 197, 111, 0.3) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #1ff88b 0%, #10b981 100%) !important;
    color: #061019 !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(31, 248, 139, 0.35) !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #2bf994 0%, #18cf92 100%) !important;
    color: #040c13 !important;
    box-shadow: 0 6px 20px rgba(31, 248, 139, 0.55) !important;
    transform: translateY(-1px) !important;
}

.btn-info {
    background: linear-gradient(135deg, #00d2ff 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.35) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #fa3f50 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(250, 63, 80, 0.35) !important;
}

.btn-outline-primary {
    border: 1px solid #1ff88b !important;
    color: #1ff88b !important;
    background: transparent !important;
    border-radius: 8px !important;
}

.btn-outline-primary:hover {
    background: rgba(31, 248, 139, 0.15) !important;
    color: #1ff88b !important;
    box-shadow: 0 0 15px rgba(31, 248, 139, 0.3) !important;
}

/* Forms & Inputs */
.form-control,
.select-css,
input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    background-color: #07121c !important;
    border: 1px solid #19344c !important;
    color: #e2f0fb !important;
    border-radius: 8px !important;
}

.form-control:focus,
input:focus,
textarea:focus {
    border-color: #1ff88b !important;
    box-shadow: 0 0 10px rgba(31, 248, 139, 0.35) !important;
    background-color: #091624 !important;
}

/* Terminal / Console */
#terminal,
.terminal-window,
.server-log-view,
pre {
    background-color: #04090f !important;
    border: 1px solid rgba(28, 60, 90, 0.6) !important;
    border-radius: 8px !important;
    color: #38ef7d !important;
    font-family: "Atkinson Hyperlegible Mono", monospace !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

/* Tables */
.table {
    color: #c5d4e4 !important;
}

.table th {
    background: #091623 !important;
    color: #1ff88b !important;
    border-bottom: 2px solid rgba(31, 248, 139, 0.2) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table td {
    border-top: 1px solid #122436 !important;
}

.table tr:hover td {
    background-color: rgba(31, 248, 139, 0.04) !important;
}

/* Modals */
.modal-content {
    background-color: #0a1622 !important;
    border: 1px solid rgba(31, 248, 139, 0.25) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
    color: #c5d4e4 !important;
}

.modal-header,
.modal-footer {
    border-color: rgba(28, 60, 90, 0.5) !important;
}

/* Footer */
footer.footer {
    background: #060e16 !important;
    border-top: 1px solid rgba(28, 60, 90, 0.4) !important;
    color: #728a9f !important;
}
