@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    color-scheme: light dark;
}

html, body {
    font-family: 'Outfit', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: light-dark(#ffffff, #000000);
    color: light-dark(#1f2937, #f3f4f6);
    width: 100%;
    height: 100%;
}
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: max(min(1676px,80%),1000px);
}
.fullscreen {
    width:100%;
    height:min-content;

}
.player {
    max-width: 856px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    border-top: 2px solid light-dark(rgba(200, 200, 200, 0.5), rgba(99, 99, 99, 0.5));
    border-left: 2px solid light-dark(rgba(200, 200, 200, 0.5), rgba(99, 99, 99, 0.5));
    border-bottom: 2px solid light-dark(rgba(100, 100, 100, 0.5), rgb(0, 0, 0));
    border-right: 2px solid light-dark(rgba(100, 100, 100, 0.5), rgb(0, 0, 0));
    box-shadow: 1px 1px 2px light-dark(rgba(0, 0, 0, 0.15), black), 0 0 25px light-dark(rgba(59, 130, 246, 0.3), blue), 0 0 5px light-dark(rgba(30, 64, 175, 0.3), darkblue);
    background-color: light-dark(rgba(240, 240, 240, 0.95), rgba(50,50,50,0.8));
    color: light-dark(#111827, #ffffff);
    height: min-content;
}

.time-info {
    margin-top: 10px;
    color: light-dark(#4b5563, #ccc);
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

    .controls button svg {
        width: 24px;
        height: 24px;
        fill: light-dark(#4b5563, #ccc);
        transition: fill 0.3s ease;
        display: block;
        margin: auto;
    }

    .controls button {
        display: flex;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

        .controls button:hover svg {
            fill: light-dark(#111827, #FFF);
        }

.playlist {
    list-style-type: none;
    padding: 0;
    margin: 0;
    /* margin-top: 20px; */
    display: block;
    height: auto; /* Dynamic height */
    box-sizing: border-box; /* Include padding/borders in height calculation */
}

    .playlist ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .playlist li {
        margin: 8px 10px;
        padding: 12px 16px;
        line-height: 1.4;
        border-radius: 12px;
        background: light-dark(rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0.02));
        border: 1px solid light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
        box-sizing: border-box;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 8px;
        transition: all 0.2s ease;
    }

    .playlist li:hover {
        background: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.05));
        border-color: light-dark(rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.2));
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .playlist li.active {
        background: light-dark(#3b82f6, rgba(59, 130, 246, 0.15));
        color: light-dark(#ffffff, #60a5fa);
        border-color: light-dark(#1d4ed8, rgba(59, 130, 246, 0.4));
        font-weight: 500;
        box-shadow: 0 4px 12px light-dark(rgba(59, 130, 246, 0.2), rgba(0, 0, 0, 0.15));
    }

.track-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.track-name {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
}

.track-download {
    display: flex;
    align-items: center;
    color: light-dark(#6b7280, #9ca3af);
    transition: color 0.2s ease;
}

.playlist li.active .track-download {
    color: inherit;
}

.track-download:hover {
    color: light-dark(#1d4ed8, #60a5fa);
}

ul.playlist::after {
    content: '';
    display: block;
    clear: both;
    height: 0;
}

#seekBar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
    z-index: 10;
    cursor: pointer;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    opacity: 0.2;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
}

    .slider:hover {
        opacity: 1;
    }

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 4px;
        height: 60px;
        background: #ffffff;
        cursor: pointer;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    }

    .slider::-moz-range-thumb {
        width: 4px;
        height: 60px;
        background: #ffffff;
        cursor: pointer;
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    }

.player-header {
    display: flex;
    flex-direction: column;
}

.track-title {
    margin: 0 10px;
    font-size: 18px;
    font-weight: bold;
}

.small-waveform {
    width: 100%;
    height: 70px;
    margin: 4px 0 0 0;
    padding: 6px 12px;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05),
                0 4px 12px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    transition: all 0.3s ease;
    object-fit: fill;
    filter: saturate(2.5) brightness(1.8);
}

#waveformImage {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: fill;
    filter: saturate(2.5) brightness(1.8);
}


/* Hover effects for item waveforms in playlists */
.playlist li:hover .small-waveform {
    background: rgba(20, 28, 38, 0.95);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1),
                0 6px 16px rgba(0, 0, 0, 0.4);
}

.svg {
    width: 24px;
    height: 24px;
    fill: light-dark(#4b5563, #ccc);
    transition: fill 0.3s ease;
    display: block;
    margin: auto;
}

/*@media screen and (max-width: 1000px) and (orientation: portrait) {
*/    /* Fix only the player-header to the bottom of the page */
    .player {
        min-width: 856px;
    }
    .player-header {
        display: flex;
        flex-direction: column-reverse; /* Reverse the order: controls below seek bar */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 1000;
    }

        .player-header:hover {
            background-color: rgba(0, 0, 0, 1);
        }

    .audioplayer h2 {
        display: none;
    }

     /*Prevent other content from being obscured*/ 
    html, body {
        padding-bottom: 220px;  /*Reserve space for the fixed player-header */
    }

    /* Playlist remains in its original position */
    .playlist {
        margin-bottom: 20px; /* Add spacing if necessary */
    }

    /* Adjust controls for mobile layout */
    .controls {
        display: flex;
        flex-direction: row; /* Keep controls aligned horizontally */
        justify-content: space-between;
        align-items: center;
        padding: 10px; /* Add padding for better spacing */
        gap: 0;
    }

        /* Let SVGs naturally fill the buttons */
        .controls button svg {
            width: 50px; /* Ensure SVGs match the button size */
            height: 50px;
        }

    .time-info {
        margin-left: auto;
        margin-right: 10px;
        font-size: 16px;
    }

    /* Seek bar stays on top of the controls */
    .seek-bar-container {
        position: relative;
        margin: 0;
        padding: 0;
        height: 60px;
        display: flex;
        align-items: center;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .seek-bar-container img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: fill;
        background: transparent;
        filter: saturate(2.5) brightness(1.8);
    }

@media (min-width: 1025px) {
    .seek-bar-container {
        position: relative;
        margin: 0;
        padding: 0;
        height: 60px;
        display: flex;
        align-items: center;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .seek-bar-container img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: fill;
        background: transparent;
        filter: saturate(2.5) brightness(1.8);
    }
    .controls {
        display: flex;
        flex-direction: row; /* Keep controls aligned horizontally */
        justify-content: space-between;
        align-items: center;
        padding: 5px; /* Add padding for better spacing */
        gap: 0;
    }

        /* Let SVGs naturally fill the buttons */
        .controls button svg {
            width: 25px; /* Ensure SVGs match the button size */
            height: 25px;
        }
}

/* Premium Form, Button, and Input Styling */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    padding: 0 20px;
}

.col-lg-6, .col-md-4, .col-lg-4 {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    background: light-dark(rgba(255, 255, 255, 0.85), rgba(17, 24, 39, 0.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 32px 0 light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.4));
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.col-lg-6:hover, .col-md-4:hover, .col-lg-4:hover {
    border-color: light-dark(rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.3));
    box-shadow: 0 12px 40px 0 light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #60a5fa, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
    font-weight: 700;
}

h2 {
    font-size: 1.2rem;
    color: light-dark(#4b5563, #9ca3af);
    text-align: center;
    font-weight: 400;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.05));
    margin: 24px 0;
}

/* Form Controls with Floating Labels */
.form-floating {
    position: relative;
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    height: 56px;
    padding: 22px 16px 6px 16px;
    font-size: 1rem;
    border-radius: 8px;
    background: light-dark(#ffffff, #111827);
    border: 1px solid light-dark(#d1d5db, #374151);
    color: light-dark(#111827, #ffffff);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: light-dark(#6b7280, #9ca3af);
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.form-control:focus ~ label,
.form-control:not(:placeholder-shown) ~ label {
    top: 8px;
    font-size: 0.75rem;
    color: light-dark(#2563eb, #60a5fa);
    transform: none;
}

/* Custom Checkbox */
.form-check-input {
    background-color: light-dark(#ffffff, #111827);
    border: 1px solid light-dark(#d1d5db, #4b5563);
    border-radius: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
}

.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkbox {
    margin-bottom: 24px;
}

.checkbox label {
    color: light-dark(#374151, #d1d5db);
    cursor: pointer;
    font-size: 0.95rem;
}

/* Premium Buttons & Links */
.btn-primary, button[type="submit"] {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover, button[type="submit"]:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.btn-primary:active, button[type="submit"]:active {
    transform: translateY(1px);
}

a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.text-danger, .validation-message {
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

/* Sticky Header and Navigation */
header {
    background: light-dark(rgba(255, 255, 255, 0.85), rgba(17, 24, 39, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.06));
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    padding: 0 24px;
}

nav a {
    color: light-dark(#6b7280, #9ca3af);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: light-dark(#000000, #ffffff);
    text-decoration: none;
}

/* Beautiful Uploader Styling */
.uploader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
    box-sizing: border-box;
}

.uploader-card {
    background: light-dark(rgba(255, 255, 255, 0.85), rgba(17, 24, 39, 0.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 10px 40px light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.5));
    box-sizing: border-box;
}

.uploader-card h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 24px;
    color: light-dark(#111827, #ffffff);
    text-align: center;
}

.dropzone {
    border: 2px dashed rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.02);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.dropzone:hover:not(.busy) {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
}

.dropzone.has-file {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.03);
}

.dropzone.busy {
    border-color: #4b5563;
    background: rgba(75, 85, 99, 0.05);
    cursor: not-allowed;
    opacity: 0.8;
}

.dropzone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    width: 100%;
}

.upload-icon {
    width: 54px;
    height: 54px;
    fill: #60a5fa;
    transition: transform 0.3s ease;
}

.dropzone:hover:not(.busy) .upload-icon {
    transform: translateY(-4px);
}

.file-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981;
}

.canvas-container {
    margin-top: 30px;
    text-align: center;
}

#waveformCanvas {
    width: 100%;
    max-width: 854px;
    height: 100px;
    border-radius: 8px;
    background-color: #0d1117;
    border: 1px solid #30363d;
    margin-top: 12px;
}

.status-indicator {
    font-size: 1.05rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 12px;
}

.pulse-text {
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out;
    color: #60a5fa;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.progress-container {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

progress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    border: none;
    background: #374151;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background: #374151;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

.progress-value {
    font-size: 0.95rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Disabled Inputs, Buttons, and Selects */
.form-control:disabled,
.form-control[disabled],
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #1f2937 !important;
    color: #9ca3af !important;
    border-color: #374151 !important;
    opacity: 0.8;
    cursor: not-allowed;
    -webkit-text-fill-color: #9ca3af !important;
}

/* Headings and Description Lists */
h3, h4, h5, h6 {
    color: light-dark(#111827, #ffffff);
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

dl, dt, dd {
    color: light-dark(#374151, #d1d5db);
}

dt {
    font-weight: 600;
    color: light-dark(#111827, #ffffff);
    margin-top: 12px;
}

dd {
    margin-left: 0;
    margin-bottom: 12px;
}

/* Form Select and Textarea overrides */
select, textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
    background: light-dark(#ffffff, #111827);
    border: 1px solid light-dark(#d1d5db, #374151);
    color: light-dark(#111827, #ffffff);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Alerts and Status Messages */
.alert {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success, .alert.success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.alert-danger, .alert.danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-warning, .alert.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 24px;
    color: light-dark(#374151, #d1d5db);
    border-collapse: collapse;
}

.table td, .table th {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid light-dark(#e5e7eb, #374151);
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    color: light-dark(#111827, #ffffff);
    background-color: light-dark(rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0.02));
}

.table tr:hover {
    background-color: light-dark(rgba(0, 0, 0, 0.01), rgba(255, 255, 255, 0.01));
}

/* Navigation Menu for Manage Account Layout */
.nav-pills {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: light-dark(#4b5563, #9ca3af);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    text-decoration: none;
}

.nav-link:hover {
    color: light-dark(#000000, #ffffff);
    background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
    text-decoration: none;
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Extra Button Variants */
.btn-secondary {
    background: light-dark(#e5e7eb, #374151);
    color: light-dark(#1f2937, #ffffff);
    border: 1px solid light-dark(#d1d5db, #4b5563);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.btn-secondary:hover {
    background: light-dark(#d1d5db, #4b5563);
    border-color: light-dark(#9ca3af, #6b7280);
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
    box-sizing: border-box;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    text-decoration: none;
}

.btn-link {
    background: none;
    border: none;
    color: #60a5fa;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control {
    flex: 1 1 auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #10b981;
    text-align: center;
    white-space: nowrap;
    background-color: light-dark(#f3f4f6, #1f2937);
    border: 1px solid light-dark(#d1d5db, #374151);
    border-left: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Recovery Code Formatting */
code.recovery-code {
    font-family: monospace;
    font-size: 1.2rem;
    color: #fbbf24;
    background-color: light-dark(#f3f4f6, #1f2937);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid light-dark(#d1d5db, #374151);
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

/* Sidebar and Main Layout cards for Manage Account pages */
.col-lg-3 {
    flex: 0 0 260px;
    background: light-dark(rgba(255, 255, 255, 0.85), rgba(17, 24, 39, 0.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 32px 0 light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.4));
    box-sizing: border-box;
    height: fit-content;
}

.col-lg-9 {
    flex: 1;
    background: light-dark(rgba(255, 255, 255, 0.85), rgba(17, 24, 39, 0.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 32px 0 light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.4));
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .col-lg-3, .col-lg-9 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}