:root {
    --bg-gradient-start: #ffea00;
    --bg-gradient-end: #ffb703;
    --panel-bg: rgba(255, 255, 255, 0.95);
    --primary: #e85d04;      /* Arancione più scuro e leggibile */
    --primary-hover: #dc2f02;
    --secondary: #219ebc;    /* Azzurro acceso a contrasto */
    --secondary-hover: #023047;
    --text-main: #1a1a1a;
    --text-dim: #555555;
    --success: #2a9d8f;      /* Verde scuro */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Views */
.view {
    display: none;
    min-height: 100vh;
    padding: 20px;
    flex-direction: column;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.view.active {
    display: flex;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Typography */
.neon-text {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    color: #023047;
    text-shadow: 2px 2px 0px #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.neon-text-small {
    font-size: 2.2rem;
    font-weight: 800;
    color: #023047;
    text-shadow: 1px 1px 0px #fff;
}

/* Login */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    background: var(--panel-bg);
    padding: 40px 20px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(251, 133, 0, 0.15);
    border: 2px solid #fff;
}

.login-container p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-weight: 600;
}

#login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid #ffe5ec;
    background: #fff;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(251, 133, 0, 0.15);
}

.hidden {
    display: none !important;
}

.error-msg {
    color: var(--primary) !important;
    margin-top: 10px;
    font-size: 0.95rem;
    background: #ffe5ec;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 15px rgba(251, 133, 0, 0.2);
}

.btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 133, 0, 0.3);
}

.btn.primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(251, 133, 0, 0.2);
}

.btn.round {
    width: 55px;
    height: 55px;
    border-radius: 27.5px;
    padding: 0;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn.text-btn {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
    padding: 10px 15px;
    font-size: 0.9rem;
    border-radius: 12px;
}

.btn.full-width {
    width: 100%;
}

.btn.join {
    background: var(--secondary);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3);
}

.btn.join:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

.btn.accept {
    background: var(--success);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(6, 214, 160, 0.2);
}

/* Board Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: var(--panel-bg);
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 2px solid #fff;
}

header h2 {
    margin: 0;
}

/* Song List */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.song-card {
    background: var(--panel-bg);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}

.song-card:hover {
    transform: translateY(-3px);
}

.song-card.challenge {
    border: 2px solid var(--primary);
}

.song-card h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
    color: var(--text-main);
    padding-right: 80px;
}

.song-card .artist {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.song-card .singers {
    font-size: 0.95rem;
    margin-bottom: 15px;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 12px;
    color: var(--text-main);
}

.song-card .status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--secondary);
    color: #fff;
}

.song-card .status-badge.pending {
    background: var(--primary);
    color: #fff;
}

.song-card .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Add View Tabs */
.add-container {
    background: var(--panel-bg);
    padding: 25px 20px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px solid #fff;
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    background: #f1f3f5;
    border-radius: 16px;
    padding: 6px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#add-song-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
