body {
    background-color: #282828;
    color: #FFFFFF;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 40px 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
}
p {
    text-align: center;
}
h1 {
    color: #1DB954;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

h2 {
    color: white;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 18px;
    padding-right: 18px;
}

h3 {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.card{
    background-color: #363636;
    color: #ffffff;
    border-radius: 10px;
    margin: 20px 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;

    display: flex;
    flex-direction: column;
    align-items: center; 
}

.input-group{
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #B3B3B3;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.input-group input {
    width: 100%;
    padding: 10px;
    background-color: #3E3E3E;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #FFFFFF;
    box-sizing: border-box;
}

button {
    background-color: #1DB954;
    color: #FFFFFF;
    border: none;
    border-radius: 40px;
    padding: 14px;
    font-weight: bold;
    width: 85%;
    cursor: pointer;
    margin-bottom: 15px;
}

button.hover {
    background-color: #5A5B5C;
}

.hidden {
    display: none !important;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.menu-card {
    background-color: #282828;
    color: white;
    border: 1px solid #363636;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.menu-card:hover {
    background-color: #181818;
    transform: scale(1.05);
}

.card-art {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.card-art-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #ff85f7, #ff5757);
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-bottom: 15px;
}

.card-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.card-info p {
    margin: 0;
    color: white;
    font-size: 0.9rem;
}

#logout {
    position: absolute;
    top: 20px;
    right: 20px;
    width: auto;
    padding: 8px 16px;
    background-color: #333333;
    font-size: 0.85rem;
    border: 1px solid #555555;
    z-index: 1000;
}

#stop {
    position: absolute;
    top: 20px;
    right: 130px;
    width: auto;
    padding: 8px 16px;
    background-color: #333333;
    font-size: 0.85rem;
    border: 1px solid #555555;
    z-index: 1000
}

#logout:hover {
    background-color: #cc0000;
    border: 1px solid #FFFFFF;
}

#stop:hover {
    background-color: #cc0000;
    border: 1px solid white;
}

#track-art {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.toast {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    animation: slideIn 0.5s ease;
}

.toast.success {
    background-color: rgb(126, 210, 169)
}

.toast.error {
    background-color: rgb(179, 104, 104)
}

.toast.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swipeLeft {
    to {
        transform: translateX(-150%) rotate(-20deg);
        opacity: 0;
    }
}

@keyframes swipeRight {
    to {
        transform: translateX(150%) rotate(20deg);
        opacity: 0;
    }
}

.swipe-left {
    animation: swipeLeft 0.4s ease forwards;
    box-shadow: 0 0 40px rgba(241, 96, 96, 0.8)
}

.swipe-right {
    animation: swipeRight 0.4s ease forwards;
    box-shadow: 0 0 40px rgba(125, 241, 96, 0.8)
}

.track-card {
    transition: box-shadow 0.1s ease;
}

@media (max-width: 480px) {
    body {
        padding: 20px 15px;
    }

    #logout {
        top: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    #stop {
        top: 10px;
        right: 90px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    h1 {
        font-size: 1.8rem;
        margin-top: 40px;
    }

    .card {
        width: 100%;
        box-sizing: border-box;
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
        padding: 10px;
        gap: 10px;
    }

    .action-buttons {
        display: flex;
        gap: 10px;
    }

    .action-buttons button {
        width: 50%;
    }
}