/* YMSjelly Dark Theme */
html, body {
    background-color: #0D0D0D !important;
    background-image: url('../images/ymsjelly-logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
    background-attachment: fixed;
    color: #E0E0E0 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100%;
}

body > .container {
    max-width: 480px;
    margin: 60px auto !important;
    float: none !important;
}

/* Center all text */
.card, .card-body, .card * {
    text-align: center;
}

/* Keep form inputs left-aligned for readability */
.form-control {
    text-align: left !important;
}

.card {
    background-color: #1A1A2E !important;
    border: 1px solid #7B3FE4 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 30px rgba(123, 63, 228, 0.3) !important;
}

.card-body {
    padding: 2rem !important;
    background-color: #1A1A2E !important;
}

/* Navbar */
.navbar {
    background-color: #12122A !important;
    border-bottom: 1px solid #7B3FE4 !important;
    border-radius: 10px 10px 0 0 !important;
    justify-content: center !important;
    display: none !important;
}

.navbar-brand {
    color: #E0E0E0 !important;
}

.navbar-collapse {
    justify-content: center !important;
}

.nav-link {
    color: #3D8EE8 !important;
}

.nav-link:hover {
    color: #9B5FFF !important;
}

/* Logo */
.menu-logo {
    display: none;
}

/* Force all text white */
p, span, div, li, td, th, h1, h2, h3, h4, h5, h6, small {
    color: #E0E0E0 !important;
}

/* Form elements */
.form-control {
    background-color: #0D0D1A !important;
    border: 1px solid #3D8EE8 !important;
    color: #E0E0E0 !important;
    border-radius: 8px !important;
}

.form-control:focus {
    border-color: #7B3FE4 !important;
    box-shadow: 0 0 8px rgba(123, 63, 228, 0.5) !important;
    background-color: #0D0D1A !important;
    color: #E0E0E0 !important;
}

.form-label, label {
    color: #B0B0C0 !important;
    display: block;
    text-align: left !important;
}

/* Buttons - centered */
.btn-primary, .btn-success {
    background: linear-gradient(135deg, #7B3FE4, #3D8EE8) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.btn-primary:hover, .btn-success:hover {
    background: linear-gradient(135deg, #9B5FFF, #5AABF8) !important;
    box-shadow: 0 4px 15px rgba(123, 63, 228, 0.4) !important;
}

/* Alerts */
.alert-success {
    background-color: rgba(61, 142, 232, 0.15) !important;
    border-color: #3D8EE8 !important;
    color: #7BBFFF !important;
}

.alert-danger {
    background-color: rgba(228, 63, 100, 0.15) !important;
    border-color: #E43F64 !important;
    color: #FF7B9B !important;
}

.alert-warning {
    background-color: rgba(228, 180, 63, 0.15) !important;
    border-color: #E4B43F !important;
    color: #FFD97B !important;
}

/* Links */
a {
    color: #3D8EE8 !important;
}

a:hover {
    color: #9B5FFF !important;
}

/* Input placeholder */
::placeholder {
    color: #606080 !important;
}

/* Override any Bootstrap white backgrounds */
.bg-white, .bg-light {
    background-color: #1A1A2E !important;
}

/* Override Bootstrap body default */
:root {
    --bs-body-bg: #0D0D0D !important;
    --bs-body-color: #E0E0E0 !important;
}
