/* ===== Marck21 Global Dark Theme ===== */
html, body {
    background-color: #0d0d0f;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ===== Bootstrap replacement utilities ===== */
/* These replace Bootstrap classes used in Identity scaffold pages */

.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating > .form-control {
    padding: 1.625rem 0.75rem 0.625rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem 0.75rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6a6a7a;
    font-size: 0.95rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    opacity: 0.75;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    background-color: #1a1a1f;
    border: 1px solid #2a2a35;
    border-radius: 8px;
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #4a9eff;
}

.form-control::placeholder {
    color: #6a6a7a;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #8a8a9a;
}

.mb-3 {
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

.text-danger {
    color: #ff6b7a;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary {
    background-color: #4a9eff;
    color: #ffffff;
    border-color: #4a9eff;
}

.btn-primary:hover {
    background-color: #3a8eef;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
}

.btn-danger {
    background-color: #ff6b7a;
    color: #ffffff;
    border-color: #ff6b7a;
}

.btn-danger:hover {
    background-color: #e55c6a;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.col-md-4 {
    width: 100%;
}

.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.input-group > .form-control {
    flex: 1;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

hr {
    border: none;
    border-top: 1px solid #2a2a35;
    margin: 1rem 0;
}

a {
    color: #4a9eff;
}

a:hover {
    color: #6ab4ff;
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333%;
    }
}

:focus-visible {
    outline: none;
}

/* ===== Holdings sidebar collapsed state ===== */
/* Shrink the persistent drawer to icon-only width */
.mud-drawer.sidebar-collapsed {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
}