/* style.css - Corrigido e aprimorado */

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

#login-view, #app-view {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

button {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    transform: scale(1.05);
}

/* Botões específicos */
#login-button, #start-button {
    background-color: #14532D;
    color: #ffffff;
    font-weight: bold;
}

#login-button:hover:not(:disabled), #start-button:hover:not(:disabled) {
    background: linear-gradient(to right, #90EE90, #40E0D0);
}

#pause-button {
    background-color: #FFA500;
}

#pause-button:hover:not(:disabled) {
    background-color: #FFD700;
}

#stop-button {
    background-color: #FF4500;
}

#stop-button:hover:not(:disabled) {
    background-color: #FF6347;
}

#next-button {
    background-color: #4169E1;
}

#next-button:hover:not(:disabled) {
    background-color: #6495ED;
}

#reload-playlists-button {
    background-color: #198754;
    margin-top: 10px;
    font-weight: 600;
}

#reload-playlists-button:hover:not(:disabled) {
    background-color: #20c997;
}

/* Inputs */
#playlist-select,
#interval-input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#playlist-select:focus,
#interval-input:focus {
    border-color: #14532D;
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.2);
    outline: none;
}

/* Seções */
.control-section {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.control-section:last-child {
    border-bottom: none;
}

.control-section h2 {
    margin-top: 0;
    color: #14532D;
}

.control-section div {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Player */
.player-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#now-playing {
    margin-top: 1rem;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

#album-art {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

#track-info {
    text-align: left;
}

#track-info p {
    margin: 0;
}

#current-track {
    font-style: italic;
    color: #666;
}

#commercial-list {
    list-style-type: none;
    padding: 0;
    font-style: italic;
    color: #555;
    text-align: left;
}

/* Status do player */
#player-status {
    font-weight: bold;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

#player-status.ok {
    background-color: #e6ffed;
    color: #14532D;
    border: 1px solid #34d399;
}

#player-status.error {
    background-color: #ffe6e6;
    color: #b91c1c;
    border: 1px solid #f87171;
}

/* Logo */
.logo-img {
    max-width: 150px;
    margin-bottom: 20px;
}

.logo-painel {
    width: 30%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.logo-painel:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(20, 83, 45, 0.7));
}

.hidden {
    display: none !important;
}

/* Responsividade */
@media (max-width: 600px) {
    #now-playing {
        flex-direction: column;
        align-items: flex-start;
    }

    .player-buttons {
        flex-direction: column;
        width: 100%;
    }

    .player-buttons button {
        width: 100%;
    }

    .control-section div {
        flex-direction: column;
        align-items: flex-start;
    }
}
