/* Importăm un font modern de la Google */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap");

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: white;
    background: #141e30;
    background: -webkit-linear-gradient(to right, #243b55, #141e30);
    background: linear-gradient(to right, #243b55, #141e30);
}

body.layout-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.main-container {
    padding: 2rem;
}

h1 {
    font-size: 3rem; /* Font mai mic pe mobil */
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem; /* Font mai mic pe mobil */
    opacity: 0.8;
    max-width: 500px;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column; /* Butoanele unul sub altul pe mobil */
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease;
    width: 250px; /* Lățime fixă pentru consistență */
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Stiluri pentru ecrane mai mari (desktop) */
@media (min-width: 768px) {
    h1 {
        font-size: 5rem; /* Font mai mare pe desktop */
    }

    .tagline {
        font-size: 1.5rem; /* Font mai mare pe desktop */
    }

    .cta-buttons {
        flex-direction: row; /* Butoanele unul lângă altul pe desktop */
        justify-content: center;
    }
}

/* Păstrăm și stilurile pentru formulare, ca să funcționeze în continuare */
form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 300px;
    color: #333;
}

form h2 {
    text-align: center;
    margin-top: 0;
}

form input {
    display: block;
    margin-bottom: 1rem;
    padding: 0.8rem;
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 0.8rem;
    width: 100%;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background-color: #0056b3;
}

.form-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #555;
}

.form-link a {
    color: #007bff;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

.dashboard-container {
    width: 90%; /* Ocupă 90% din lățimea ecranului */
    max-width: 800px; /* Dar nu mai mult de 800px */
    padding: 2rem;
    margin: 2rem auto; /* AICI ESTE MAGIA: 2rem sus/jos, 'auto' stânga/dreapta */
    text-align: left;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Pentru ecrane mici */
}

.dashboard-header h1 {
    font-size: 2rem;
    margin: 0;
}

#playlist-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

#playlist-form input {
    flex-grow: 1; /* Input-ul va ocupa spațiul rămas */
    margin-bottom: 0;
}

#playlist-form button {
    width: auto; /* Lățimea se adaptează la conținut */
    white-space: nowrap;
}
