@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-main: #a0a0a0;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

nav {
    background-color: var(--card-bg);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

nav h2 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    margin-right: 20px;
}

nav a:hover {
    color: var(--primary);
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.auth-card h1 {
    color: var(--primary);
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, background-color 0.3s;
}

.card:hover {
    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    border-left: 4px solid var(--primary);
    background: var(--bg-color);
    border-radius: 0 var(--radius) var(--radius) 0;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: var(--primary-hover);
}

nav button {
    width: auto;
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

nav button:hover {
    background-color: #fee2e2;
    color: #ef4444;
    border-color: #ef4444;
}

.btn-danger {
    background-color: #ef4444;
}

.btn-danger:hover {
    background-color: #dc2626;
}

ul {
    list-style: none;
    margin-top: 15px;
    max-height: 250px;
    overflow-y: auto;
}

ul li {
    background: var(--bg-color);
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-size: 0.9rem;
}

ul li strong {
    color: var(--text-main);
}

#song-results li {
    border-left: 3px solid #10b981;
}

audio {
    width: 100%;
    height: 35px;
    border-radius: 20px;
}

hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 25px 0;
}