body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #121212 url('/static/background.png') no-repeat center center fixed !important;
    background-size: cover !important;
    color: #e0e0e0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#root {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    text-align: center;
    width: 90%;
    max-width: 850px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-logo-gif {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.4);
}

.language-picker {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.lang-btn {
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.spotify-logo {
    color: #1DB954;
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(29, 185, 84, 0.3));
}

/* Loading animations */
@keyframes pulse-bg {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.status-card {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.95);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 1; }
    20% { transform: scale(25, 25); opacity: 1; }
    100% { opacity: 0; transform: scale(40, 40); }
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

h1 {
    color: #fff;
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.user-info-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
}

.user-meta-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.meta-section {
    text-align: left;
}

.meta-section label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 2px 10px 2px;
    scrollbar-width: thin;
    scrollbar-color: #1DB954 transparent;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: #1DB954;
    border-radius: 2px;
}

.connections-list .connection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s;
    min-width: 80px;
}

.connection-icon-wrapper {
    font-size: 1.8rem;
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-name {
    font-size: 0.7rem;
    color: #b3b3b3;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.connections-list .connection-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.connections-list .connection-item:hover .connection-icon-wrapper {
    color: #1DB954;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 0;
}

.toggle-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.volume-control i {
    color: #b3b3b3;
    font-size: 0.9rem;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: #282828;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border-left: 4px solid #1DB954;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1DB954;
}

.username {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.status-card {
    background: rgba(43, 45, 49, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.support-btn {
    background: #5865f2;
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.support-btn:hover {
    background: #4752c4;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    background: #1DB954;
    box-shadow: 0 0 12px #1DB954;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; box-shadow: 0 0 5px #1DB954; }
    50% { opacity: 1; box-shadow: 0 0 15px #1DB954; }
    100% { opacity: 0.6; box-shadow: 0 0 5px #1DB954; }
}

.server-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: left;
}

.server-selection select {
    padding: 10px;
    background: #121212;
    color: white;
    border: 1px solid #333;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.server-selection select:hover {
    border-color: #1DB954;
}

.server-selection label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 500px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.3, 0, 0, 1);
    background: #282828;
    color: white;
    margin: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: scale(1.04);
    background: #3e3e3e;
}

.login-btn { background: #1DB954; color: #000; }
.login-btn:hover { background: #1ed760; }

.logout-btn { 
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px; 
    font-size: 0.75rem;
    margin: 0;
}

.invite-btn { 
    background: #1DB954; 
    color: #000;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.play-btn { 
    background: #1DB954; 
    width: 100%; 
    margin-top: 1rem; 
    color: #000; 
    font-size: 1rem;
    padding: 1rem;
}
.play-btn:hover { background: #1ed760; }

.stop-btn { background: #e91429; }
.stop-btn:hover { background: #ff1a33; }

.controls-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.control-group h3 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: #282828;
    color: white;
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #1DB954;
    background: #333;
}

.spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(29, 185, 84, 0.2);
    border-radius: 50%;
    border-top-color: #1DB954;
}

.user-guilds {
    margin-top: 20px;
    text-align: left;
}

.user-guilds label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.guilds-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.guild-item {
    flex: 0 0 auto;
    width: 60px;
    text-align: center;
    cursor: pointer;
}

.guild-item img, .guild-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 5px;
    transition: transform 0.2s;
    border: 2px solid transparent;
}

.guild-item:hover img, .guild-item:hover .guild-placeholder {
    transform: scale(1.1);
    border-color: #1DB954;
}

.guild-placeholder {
    background: #282828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}

.guild-item span {
    font-size: 0.65rem;
    color: #b3b3b3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    background: #1DB954;
    box-shadow: 0 0 12px #1DB954;
    animation: pulse 2s infinite;
}

.playback-controls, .extra-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.volume-control {
    background: rgba(40, 40, 40, 0.6);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-control label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #b3b3b3;
}

input[type="range"] {
    flex-grow: 1;
    height: 4px;
    background: #4d4d4d;
    border-radius: 2px;
    appearance: none;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

input[type="range"]:hover::-webkit-slider-thumb {
    background: #1DB954;
}

#volume-display {
    font-weight: 700;
    min-width: 40px;
    color: #1DB954;
}
