/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Tema Dark */
body {
    background-color: #121212;
    color: #f1f1f1;
    font-size: 16px;
    line-height: 1.5;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Estilo do cabeçalho */
header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    color: #fff;
}

header h1 span {
    color: #1E90FF;
}

/* Estilo para a lista de apps */
#app-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cada item da lista de apps */
.app-item {
    background-color: #1f1f1f;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.app-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(30, 144, 255, 0.4);
}

/* Ícone do app */
.app-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background-color: #333;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: rotate(15deg);
}

/* Informações do app */
.app-info {
    flex-grow: 1;
    text-align: left;
}

.app-info h2 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 5px;
}

.app-info p {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 10px;
}

/* Notificação de atualização */
.update-badge {
    display: inline-block;
    background-color: #ff5555;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}

/* Botão de download */
.download-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #1E90FF;
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.download-button:hover {
    background-color: #1C86EE;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(30, 144, 255, 0.5);
}

.download-button:active {
    background-color: #187bcd;
    transform: scale(1);
}

/* Animando o botão de download enquanto o arquivo é baixado */
.downloading {
    background-color: #4CAF50;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Mensagem de carregamento e erro */
.loading, .error {
    font-size: 18px;
    color: #ff5555;
    text-align: center;
    margin-top: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 28px;
    }

    .app-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .app-icon {
        width: 60px;
        height: 60px;
    }

    .app-info h2 {
        font-size: 20px;
    }

    .download-button {
        font-size: 14px;
    }
}
