:root {
    --primary-color: #1DB954; /* Spotify Green */
    --secondary-color: #1ed760;
    --bg-dark: rgb(16 34 21 / 0.9);
    --card-bg: rgb(28 46 33 / 0.8);
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #1DB954;
    --error: #ff4b4b;
    --border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* App Container Simulation */
.app-container {
    width: 100%;
    max-width: 480px; /* Mobile width simulator */
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 80px; /* Footer space */
}

/* Header */
header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(13, 30, 18, 0.95); /* Tom de verde escuro que combina com o fundo */
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

/* Cards & Sections */
.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 1.5rem 0.75rem;
}

.card-group {
    background-color: var(--card-bg);
    margin: 0 1rem;
    border-radius: 16px;
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: white;
    transition: background 0.3s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.item-icon {
    width: 32px;
    height: 32px;
    background: rgba(29, 185, 84, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
}

.item-text {
    flex: 1;
}

.item-text span {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
}

.item-text small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.item-action {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: rgba(13, 30, 18, 0.98); /* Combinando com o tom do topo */
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    gap: 4px;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Forms & Buttons */
.input-wrapper input, .input-wrapper select {
    width: 100%;
    background: #1a241d;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: black;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.logout-container {
    padding: 2rem 1.5rem;
}

.btn-logout {
    background: rgba(255, 75, 75, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 75, 75, 0.2);
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
}

/* Profile Section */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 1rem;
    border: 4px solid var(--card-bg);
    overflow: hidden;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Switches (Toggles) */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(20px); }
