html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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;
}

.app-logo {
    height: 45px;
    margin-left: 10px;
}

.album-art-container {
    position: relative;
}

/* Add to Cart Button Layout */
.card-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;    
    border-radius: 500px;   
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-cart-button:hover {        
    transform: scale(1.02);
}

.card-cart-button.animating {
    animation: cartPulse 0.3s ease-out;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* MusicLibrary Layout Styles */
.music-library-container {
    padding: 24px;
    min-height: calc(100vh - 80px);
}

.loading-state,
.error-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.music-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    width: 100%;
}

.music-card {
    border-radius: 8px;
    padding: 16px;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-album-art {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.card-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.card-album-art-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.card-actions {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    margin-top: auto;
}

.card-play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.card-play-button:hover {
    transform: scale(1.05);
}

.card-play-button:active {
    transform: scale(0.95);
}

.card-view-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s ease, transform 0.1s ease;
}

.card-view-button:hover {
    transform: scale(1.05);
}

.card-mini-player {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.card-mini-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-mini-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-mini-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease;
}

.card-mini-button:hover {
    transform: scale(1.05);
}

.card-volume-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.card-volume-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s ease;
}

.card-volume-bar-container {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.card-volume-bar-container:hover {
    height: 6px;
}

.card-volume-bar {
    height: 100%;
    border-radius: 2px;
    position: relative;
    pointer-events: none;
}

.card-volume-thumb {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-volume-bar-container:hover .card-volume-thumb {
    opacity: 1;
}

.card-progress-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-progress-bar-container {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.card-progress-bar-container:hover {
    height: 6px;
}

.card-progress-bar {
    height: 100%;
    border-radius: 2px;
    position: relative;
    pointer-events: none;
}

.card-progress-thumb {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-progress-bar-container:hover .card-progress-thumb {
    opacity: 1;
}

.card-progress-bar-container.restricted {
    position: relative;
}

.card-progress-limit-marker {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 3px;
    border-radius: 2px;
    z-index: 2;
}

.card-audio-hidden {
    display: none;
}

.music-filter-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-option input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease;
}

.filter-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.owned-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button-wrapper {
    position: relative;
    display: inline-block;
}

.music-note-float {
    position: absolute;
    top: 0;
    left: 50%;
    pointer-events: none;
    animation: musicNoteFloat 0.8s ease-out forwards;
    z-index: 10;
}

@keyframes musicNoteFloat {
    0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { opacity: 1; transform: translate(10px, -20px) rotate(15deg) scale(1.3); }
    100% { opacity: 0; transform: translate(20px, -50px) rotate(30deg) scale(0.5); }
}

.album-card {
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.album-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Song Title */
.card-song-title {    
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Playlists Page Layout */
.playlists-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlists-page-grid {
    display: grid;
}

.playlists-page-actions {
    position: absolute;
    top: 8px;
    right: 8px;
}

.playlists-page-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlists-page-card-header h5 {
    margin: 0;
}

.playlists-page-info p {
    margin: 5px 0;
}

.playlists-page-card-actions {
    display: flex;
}

.playlists-page-songs-section {
    border-radius: 4px;
}

.playlists-page-songs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlists-page-songs-header > div {
    display: flex;
}

.playlists-page-songs-list {
    display: flex;
    flex-direction: column;
}

.playlists-page-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.playlists-page-song-info {
    display: flex;
    flex-direction: column;
}

.playlists-page-song-title {
    font-weight: 500;
}

.playlists-page-add-song-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.playlists-page-add-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.playlists-page-dialog-content {
    text-align: center;
}
