html, body {
    min-height: 100vh;
    background: #0A0A0A url('../img/bg-mist.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    background-color: #0A0A0A !important;
    color: #E0E0E0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-bottom: 80vh !important;
}

body::before {
    content: '';
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60vh;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4) 40%, transparent);
    pointer-events: none;
    z-index: -1;
}

/* Glassmorphism Containers replacing the old pastel layout */
.bg-light {
    background-color: rgba(15, 15, 20, 0.35) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFF !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Fix Bootstrap Modals to match the dark glass theme (otherwise text is invisible) */
.modal-content {
    background-color: rgba(20, 20, 25, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #E0E0E0 !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
}
.modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.modal-footer {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}
.close {
    color: #FFF !important;
    text-shadow: none !important;
}

.border-bottom {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.secret {
    color: #FFF !important;
    background-color: rgba(212, 154, 54, 0.15) !important;
    border: 1px dashed #D49A36 !important;
    box-shadow: inset 0 0 20px rgba(212, 154, 54, 0.1);
    backdrop-filter: blur(8px);
}

#secret-code {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.5rem;
    color: #EFC76E;
    text-shadow: 0 0 10px rgba(212, 154, 54, 0.5);
}

.panel-heading {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

li {
    line-height: 2;
}

.its-me {
    font-weight: 700;
    color: #EFC76E;
}

.logged-in-as {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 12px;
    font-style: italic;
    max-width: 30%;
    color: rgba(255,255,255,0.6);
}

.float-bottom {
    position: absolute;
    margin: 1rem;
    bottom: 0;
    right: 0;
}

/* The Glowing Amber Gotcha Button */
.btn-primary {
    color: #121212 !important;
    background: linear-gradient(135deg, #D49A36, #EFC76E) !important;
    border: none !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0px 1px 2px rgba(255,255,255,0.4);
    box-shadow: 0 0 15px rgba(212, 154, 54, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:not(:disabled):not(.disabled):active {
    box-shadow: 0 0 25px rgba(239, 199, 110, 0.8) !important;
    transform: translateY(-2px);
}

.btn-primary:focus, .btn-primary.focus {
    box-shadow: 0 0 0 0.3rem rgba(212, 154, 54, 0.5) !important;
}

.btn-primary.disabled, .btn-primary:disabled {
    background: linear-gradient(135deg, #8C6A2E, #A68D53) !important;
    box-shadow: none;
    color: rgba(0,0,0,0.5) !important;
}

.btn-danger {
    background-color: rgba(241, 62, 36, 0.15) !important;
    border: 1px solid #F13E24 !important;
    color: #FF8576 !important;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #F13E24 !important;
    color: #FFF !important;
    box-shadow: 0 0 15px rgba(241, 62, 36, 0.6);
}

.alert-info {
    background-color: rgba(20, 20, 30, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #E0E0E0 !important;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background-color: rgba(40, 10, 10, 0.6) !important;
    border: 1px solid rgba(241, 62, 36, 0.5) !important;
    backdrop-filter: blur(10px);
    color: #FFB3A8 !important;
}

#global-countdown {
    color: #EFC76E;
    text-shadow: 0 0 15px rgba(212, 154, 54, 0.8);
    font-weight: 800;
}

h1, h2, h3, h4, h5 {
    color: #FFFFFF !important;
    font-weight: 600;
    letter-spacing: 1px;
}

hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom dark fields for generic inputs */
.form-control {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFF !important;
    backdrop-filter: blur(4px);
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-color: #D49A36 !important;
    box-shadow: 0 0 8px rgba(212, 154, 54, 0.4) !important;
    color: #FFF !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}